Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-13-2012, 12:01 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
Change XML element value

If I need to change the value of 'interface' node from an xml doc like below -what is the VBScript syntax ?


<nightlytrunk>
<year>12</year>
<quarter>1</quarter>
<interface>1107</interface>
<build>0</build>
<builddescription>2012 M1</builddescription>
<buildnumber>0</buildnumber>
<produceinstallkits>1</produceinstallkits>
</nightlytrunk>
</intradaytrunk>

This one from your sample is working for an attribute:
Set elem = doc.selectSingleNode("appSettings/add[[@key='" & key & "']]")
elem.setattribute "value", value

but cannot manage to set interface node from 1107 to 1108 .
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:20 PM.


Copyright © 1999-2023 Kinook Software, Inc.