in reply to xmlns and XML::LibXML
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,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: xmlns and XML::LibXML ( local-name() )
by Anonymous Monk on Jun 02, 2015 at 03:18 UTC | |
by Anonymous Monk on Jun 02, 2015 at 03:29 UTC | |
by worik (Sexton) on Jun 02, 2015 at 03:46 UTC | |
by choroba (Cardinal) on Jun 02, 2015 at 08:30 UTC | |
by Anonymous Monk on Jun 02, 2015 at 09:33 UTC |