Re: [xml] document node



* Vojtech Fried wrote:
I would expect XPath '/data/message/ancestor-or-self::*' to return three 
nodes: document node (the node with type XML_DOCUMENT_NODE), 'data' node 
(the root node) and 'message' node. I don't get the document node 
though.

The node test `*` matches only element nodes; use `node()` instead.
-- 
Björn Höhrmann · mailto:bjoern hoehrmann de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]