Menu

update when using XPath to select node value

Anonymous
2006-07-28
2013-05-15
  • Anonymous

    Anonymous - 2006-07-28

    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

     
    • Anonymous

      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

       
    • jimmy zhang

      jimmy zhang - 2006-07-28

      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

       

Log in to post a comment.