LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delete an xml node

hello people,,,,i want to replace the text value of node in an xml file,the file appears likes this

 

<accounts>

<expenditure>50<expenditure>

</accounts>

 

i want to change 50 to say 40,i have tried all ways but can't seem to get it right..in my vi i open the file using the Load V.I from xml

parser and then am supposed to use the node out from this V.I of the xml to access expenditure and then change it's value...NB:i am supposed to use standard xml functions to do this..any ideas??

0 Kudos
Message 1 of 4
(2,987 Views)

Here's a way to change a node value. Note, your closing expenditure tag miss the /.

 

Ben64

 

XML Change node value.png

0 Kudos
Message 2 of 4
(2,967 Views)

thank you ben...i haven't gotten time modify my V.I but i will give you feed back as soon as am through

0 Kudos
Message 3 of 4
(2,933 Views)

it worked... thanks very much

0 Kudos
Message 4 of 4
(2,902 Views)