see xpather.pl , it will spit out stuff like this, you only need to match on local-name() (just delete the other "and" conditions )
xpath1
# star /*[ local-name() = "propfind" and namespace-uri() = "DAV:" and position() = 1 ] /*[ local-name() = "prop" and namespace-uri() = "DAV:" and position() = 1 ] /*[ local-name() = "bigbox" and namespace-uri() = "http://ns.example.com/boxschema/" ]
xpath2
/*[ local-name() = "propfind" and namespace-uri() = "DAV:" and position() = 1 ] /*[ local-name() = "propname" and namespace-uri() = "DAV:" ]
see xpather.pl , Re: XML::LibXSLT ignoring namespace on some Win32 machines (libxslt-1.1.27 bug), Re^5: Xpath not working, Re^8: How to parse xml with namespase vale in XMl:LibXML? (autoRegisterNs ), Re: XML::LibXML and namespaces, Re^2: Namespaced XML::LibXML XPath query (not a bug)
The XML FIles: Understanding XML Namespaces, Re: XML::LibXSLT ignoring namespace on some Win32 machines (libxslt-1.1.27 bug), Re^2: XML::LibXML and namespaces, Re^2: XML::LibXML and namespaces, Re: XML::LibXML and namespaces, XPATH DOM traverse html/xml,
In reply to Re: xmlns and XML::LibXML ( local-name() )
by Anonymous Monk
in thread xmlns and XML::LibXML
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |