Hello :-)
I am learning XPath, and I am trying to get child nodes
of a node whose names do *not* match a given string,
e.g :
<dummy>
<example>
<title>Exampl e 1</title>
<body>this is an example</body>
<picture>a reference to a picture</picture>
</example>
</dummy>
I want to get "body" and "picture" child nodes of the
"example" node. I thought that this request could do
the trick but it is not working :
/dummy/example/*[name()!="title"]
Can someone help me, please ?
Thanks in advance!!!
I am learning XPath, and I am trying to get child nodes
of a node whose names do *not* match a given string,
e.g :
<dummy>
<example>
<title>Exampl e 1</title>
<body>this is an example</body>
<picture>a reference to a picture</picture>
</example>
</dummy>
I want to get "body" and "picture" child nodes of the
"example" node. I thought that this request could do
the trick but it is not working :
/dummy/example/*[name()!="title"]
Can someone help me, please ?
Thanks in advance!!!
Comment