* 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:bjo...@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/ 
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml

Reply via email to