[xml] Problem with xmlGetNodePath() and default namespaces



Hi,

xmlGetNodePath() (tree.c) will return "/foo" for the
following scenario:

<?xml version="1.0"?>
<foo xmlns="urn:test:foo"/>

In this case, the result of xmlGetNodePath() is not suitable
for usage as an expression in further XPath processing.

Is it OK to add to tree.c an other function which would generate
a more generic path, without any information about node-names or
namespaces?
The result would be "/*"; and analogous for attributes, e.g.
"/*/*[3]/@*[5]".

Regards,

Kasimier





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