[Home] [By Thread] [By Date] [Recent Entries]
Senthil Nathan wrote:
Hi, You cannot. You cannot have, i.e.: <node 1="value" />. You can, however, have <node attr="<1>" />, which is as close as it can get to have "<1>" as attribute (value). can i use xpath to specifically only if you have a node that is valid XML in the input, of course ;) then yes (you can select about anything in XML with XPath).
No. It will select all children of all nodes directly under 'level1' with an id="1" (i.e., if you have <b id="i1"> its children will also be selected). If you want all children of <a id="1">, write: /root/level1/a[@id="1"]/* HTH, Cheers, -- Abel Braaksma
|

Cart



