Change XML files very fast

Contains useful source code for specific use cases.

Change XML files very fast

Postby Development@SIB » Sun Mar 20, 2011 3:46 pm

Our XML file

Code: Select all
<server>
  <!-- Test: STARTPORT -->
  <startport>2001</startport>
 
  <audio>off</audio>
  <serial>COM1</serial>
  <domain>JVx</domain>
</server>

Change it:

Code: Select all
XmlNode xmnRead = readXml("simple.xml");

xmnRead.setNode("/server/audio", null);
xmnRead.setNode("/server/domain", "www.sibvisions.com");
User avatar
Development@SIB
 
Posts: 311
Joined: Mon Sep 28, 2009 1:54 pm

Return to Code snippets