Skip to content Skip to sidebar Skip to footer

Xpath Query To Get The Parent Element Text And Its Child Element Attribute Values?

I have the following XML : Program pointer has been reset The program pointer of t

Solution 1:

With XPath 2.0 or XQuery 1.0 you could use string-join(/sample//Message[@number = 2]/Description/(text() | */@*), ''). I am not sure whether Python gives you access to an XPath 2.0 or XQuery 1.0 library.


Post a Comment for "Xpath Query To Get The Parent Element Text And Its Child Element Attribute Values?"