Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: XML namespace question

by Anonymous Monk
on Oct 07, 2015 at 23:52 UTC ( [id://1144121]=note: print w/replies, xml ) Need Help??


in reply to XML namespace question

xml namespace xml register, xpather.pl , 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)
/*[ local-name() = "rpc-reply" and namespace-uri() = "urn:ietf:params:xml:ns:netconf:base:1.0" and position() = 1 ] /*[ local-name() = "vlan-information" and namespace-uri() = "urn:ietf:params:xml:ns:netconf:base:1.0" and position() = 1 and @junos:style = "terse" ] /*[ local-name() = "vlan-terse" and namespace-uri() = "urn:ietf:params:xml:ns:netconf:base:1.0" ]

So there you have it :)

/*[ local-name() = "rpc-reply" ] /*[ local-name() = "vlan-information" ] /*[ local-name() = "vlan-terse" ]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1144121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-19 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found