Root[1] vs Root (2)
Brought to you by:
bs_php,
nigelswinson
From: Branko N. <bra...@in...> - 2002-08-06 18:35:02
|
> I've noticed that root absolute path need to be numbered as root[1]: > $set = $x1->match("//document", "/root[1]/folder[3]"); > > In case without [1] after root > $set = $x1->match("//document", "/root/folder[3]"); > have got error: > *XPath error in XPath.class.php:2121* The supplied xPath '//document' > does not *uniquely* describe a node in the xml document. > > Seems strange to me, as root is always the only one. > > Branko |