473,320 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PB with XPathSyntax

Hi

I have this xml document :
------------------------------------------------------------
<rs:data ItemCount="7" xmlns:rs="urn:schemas-microsoft-com:rowset">
<z:row ows_Title="Introduction" xmlns:z="#RowsetSchema" />
<z:row ows_Cat="1;#Introduction" ows_Title="Introduction -&gt;
Présentation " xmlns:z="#RowsetSchema" />
<z:row ows_Cat="1;#Introduction" ows_Title="Introduction -&gt; Enjeux"
xmlns:z="#RowsetSchema" />
<z:row ows_Title="Solution proposée" ows_ID="4" xmlns:z="#RowsetSchema" />
<z:row ows_Cat="4;#Solution proposée" ows_Title="Solution proposée -&gt;
Couverture fonctionnelle" xmlns:z="#RowsetSchema" />
<z:row ows_Cat="4;#Solution proposée" ows_Title="Solution proposée -&gt;
Architecture de la solution -&gt; Configuration requise"
xmlns:z="#RowsetSchema" />
</rs:data>
------------------------------------------------------------
All node does not a "ows_Cat" attribute defined. What is the correct XPath
query to get all row node whithout ows_Cat defined ?

I try this XPath query :
"//rs:data/z:rows[count(ows_Cat) != 0]"

But it does not work.

Any Idea ?

Thanks,
Steve
Nov 11 '05 #1
2 1312
Thanks, its works fine

"Oleg Tkachenko" <oleg@NO_SPAM_PLEASEtkachenko.com> a écrit dans le message de news:%2****************@TK2MSFTNGP10.phx.gbl...
| Steve B. [Labo.Net] wrote:
|
| > All node does not a "ows_Cat" attribute defined.
| Hmmm. Is it Klingon? :)
|
| > What is the correct XPath
| > query to get all row node whithout ows_Cat defined ?
|
| /rs:data/z:rows[not(@ows_Cat)]
| --
| Oleg Tkachenko
| http://www.tkachenko.com/blog
| Multiconn Technologies, Israel
|
Nov 11 '05 #2
Oleg Tkachenko wrote:
/rs:data/z:rows[not(@ows_Cat)]

Should read
/rs:data/z:row[not(@ows_Cat)]

--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.