in reply to XML::LibXML problem
"Text node" is not an element containing text. It is an abstract node in the XML DOM structure that corresponds to the text itself. Moreover, //* only matches elements, not text nodes. To match text nodes, use //text().if ($node->nodeType == XML_TEXT_NODE) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::LibXML problem
by norricorp (Initiate) on Dec 29, 2011 at 14:11 UTC | |
by choroba (Cardinal) on Dec 29, 2011 at 14:27 UTC | |
by norricorp (Initiate) on Dec 29, 2011 at 16:11 UTC | |
by choroba (Cardinal) on Dec 29, 2011 at 16:18 UTC | |
by norricorp (Initiate) on Dec 29, 2011 at 16:38 UTC |