I was wondering - is it possible to select node with XPath and then update it? Right now I am not sure if it's possible or I should stick to the VTDNav.matchElement and then play with offsets?
If it's not possible, then I think it would be really a good idea to add it ;-)
thanks,
Leszek
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-07-28
I am trying to play with the ap.evalXPath() but it looks like now I am with sticked with XPath which selects node and not a value ;-)
Still have some progress :-)
cheers,
Leszek
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I was wondering - is it possible to select node with XPath and then update it? Right now I am not sure if it's possible or I should stick to the VTDNav.matchElement and then play with offsets?
If it's not possible, then I think it would be really a good idea to add it ;-)
thanks,
Leszek
I am trying to play with the ap.evalXPath() but it looks like now I am with sticked with XPath which selects node and not a value ;-)
Still have some progress :-)
cheers,
Leszek
well, VTD-XML makes change to XML directly. so if you want to change node values, record their offsets and lengths, and update them at the end...
playing with the offsets may seem like a challenge initially, but as you start getting used to it, it is not quite as difficult as it looks