xpath wildcards?

Ross Vandegrift wrote:
> On Wed, Jan 28, 2009 at 11:17:11AM -0800, Derick Winkworth wrote:
>   
>> xpath notation can help you find "junos-interface:interfaces" no
>> matter where its located.
>>     
>
> Can you do that without providing a map that maps the abbreviated
> namespace back to the fully-qualified namespace?  If so, I'd love to
> know how.
>
> In my understanding, the XPath query ".//junos-interface:interfaces" [1]
> only matches
> "<http://xml.juniper.net/junos/9.3R2/junos-interface:interfaces>" if I
> can somewhere say that
> "junos-interface = http://xml.juniper.net/junos/9.3R2/junos-interface";.
>
> That just moves the problem to one of making a namespace map.
>
>
> Ross
>
> [1] - that's the XPath to find the element named "interfaces" from the
> namespace that's been abbreviated "junos-interface" in any subtree.
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.176 / Virus Database: 270.10.15/1922 - Release Date: 1/28/2009 
> 7:24 PM
>
>   
_______________________________________________
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to