XPath - is it possible to query the node content?

Posted by fraido on Stack Overflow See other posts from Stack Overflow or by fraido
Published on 2010-04-09T13:46:21Z Indexed on 2010/04/09 13:53 UTC
Read the original article Hit count: 299

Filed under:
|
|

I've this xml

<root>
    <node1>
        <node2>xxx</node2>
    </node1>
    ...
    <node1>
        <node2>yyy ABC yyy</node2>
    </node1>
    ...
    <node1>
        <node2>zzz</node2>
    </node1>
</root>

I want to get node1 that has a node2 containing the text ABC.
Is it possible to achieve this using XPath?

© Stack Overflow or respective owner

Related posts about xpath

Related posts about Xml