Miguel said:
Hi,
How do you change just the element's value in an existing xml file
Thanks
Nikron
dim xpathdoc as xpathdocument
dim xmlnav as xpathnavigator
dim xmlni as xpathnodeiterator
xpathdoc = new xpathdocument("X:\yourpath\yourfile.xml")
xmlnav=xpathdoc.createnavigator()
xmlni=xmlnav.select("customers/products/telephone") <- this is a path
you want to navigate to. you can use a [@Type="acustomer"] to filter for
the type attribute (e.g. set to acustomer)
while(xmlni.movenext())
'do whatever you want with
xmlni.current.value
end while
wrote this quickly, but should work.
have fun
tomi