[xml] XPath, NODE_TEST_ALL and namespace
- From: François Delyon <f delyon satimage fr>
- To: libxml <xml gnome org>
- Subject: [xml] XPath, NODE_TEST_ALL and namespace
- Date: Mon, 10 Jun 2013 10:43:19 +0200
Hi,
The NODE_TEST_ALL test is not correct.
For an xpath expression "p:*", libxml returns the correct list of the
elements in the namespace associated to the prefix "p".
That is not the case for the expression "@p:*".
libxml does not test the namespace of the attributes.
See the function xmlXpathNodeCollectAndTest (xpath.c ) line 12419 in
2.9.1 :
case NODE_TEST_ALL:...
I think that the AXIS_ATTRIBUTE must be handled like the
XML_ELEMENT_NODE.
François.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]