|
 |
aspx thread: Xpath query?
Message #1 by "Oliver, Wells" <WOliver@l...> on Tue, 5 Nov 2002 11:23:54 -0800
|
|
I am having trouble building an Xpath query. I am trying to grab all nodes
(will only be one, really) of USER that have an ACCOUNT tribute that matches
a string.
Example XML:
<?xml version="1.0" encoding="utf-8" ?>
<users>
<user account="telcom\woliver">
<catalog id="1" level="3" />
</user>
</users>
Xpath attempt:
descendant::user[account="DOMAIN\\user"]
Any tips?
Wells Oliver
Web Applications Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
Message #2 by "Joe Fawcett" <joefawcett@h...> on Wed, 6 Nov 2002 07:10:47 -0000
|
|
----- Original Message -----
From: "Oliver, Wells" <WOliver@l...>
To: "ASP.NET" <aspx@p...>
Sent: Tuesday, November 05, 2002 7:23 PM
Subject: [aspx] Xpath query?
> I am having trouble building an Xpath query. I am trying to grab all nodes
> (will only be one, really) of USER that have an ACCOUNT tribute that
matches
> a string.
>
> Example XML:
> <?xml version="1.0" encoding="utf-8" ?>
> <users>
> <user account="telcom\woliver">
> <catalog id="1" level="3" />
> </user>
> </users>
>
> Xpath attempt:
> descendant::user[account="DOMAIN\\user"]
>
> Any tips?
>
> Wells Oliver
> Web Applications Programmer
> Leviton Voice & Data
> xxx-xxx-xxxx
> http://www.levitonvoicedata.com
account is an attribute so precede it with @:
descendant::user[@account='DOMAIN\\user']
Joe
|
|
 |