Re: newbie XPATH newsgroup ?
"rvj" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
I think the correct term is serialized but really what I am trying to
understand is XPath with multiple namespaces
For example if you search for an attribute called 'author' but with
multiple namespaces. Given
xpath= "/ns1:author[@id='x']/ns2:author[@id='y']
is it possible to declare the namespace references in the xpath?
It seems that a serialized xpath format would make this a lot easier to
read
<ns1:author ns1:author="www.foo1" xpath="@id='x'>
<ns2:author ns2:author=www.foo2 xpath="@id='y'/>
<ns1:author>
Any recommended reading for XPath+multiple namespaces?
"rvj" <[email protected]> wrote in message
news:[email protected]...
> a) is there a XPath newsgroup
>
> b) very simply all I want to know is there is a mechanism
(exists/proposed)
> for switching between a compact XPath representation and a more verbose
XML
> structured representation ?
>
> where
>
> /provider[@id=123]/library[@id=234]/detail[@id=345]/*
>
> can be alternatively represented something like
>
> <provider xpath="[@id=123]" >
> <library xpath="[@id=234]" >
> <detail xpath="[id=345]/*" />
> </library>
> </provider>
>
>