Re: [xml] document node
- From: Bjoern Hoehrmann <derhoermi gmx net>
- To: Vojtech Fried <vfried opentext com>
- Cc: "xml gnome org" <xml gnome org>
- Subject: Re: [xml] document node
- Date: Thu, 20 Sep 2012 13:52:06 +0200
* 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]