|
 |
aspx thread: Re: xpath
Message #1 by "Jonathan Larouche" <jlarouche@d...> on Thu, 6 Mar 2003 13:21:05
|
|
try this:
//book[author and title]
It should works, ive made many xpath query of these kind in .Net
Jonathan
> hi group,
I am getting sick of it. .net doesn't even support a simple xpath
like
//book/(author,title) where author and title are
childnodes of book.
Regards
Rohit Arora
Message #2 by "Rohit Arora" <rohit_arora@i...> on Thu, 6 Mar 2003 18:47:09 +0530
|
|
Hi Jonathan
I know that this kinda query works --- //book[author and title]
but what exactly I want is like
//book[authorid =5 and title ="dffd"]/(authorname, bookcost) which i think
can't be accomplished by query like
-------- //book[author and title]
There must be some way to execute xpath like this...what currently I am
doing is a very inefficient way but I am helpless.
Wht i am doing looks somethin like this --
//book[authorid =5 and title ="dffd"]/authorname |//book[authorid =5 and
title ="dffd"]/authorname bookcost
One more problem I was facing was when I give xpath like //book[position()
first()] and it asks somethin like using namespace manager. Can u put some
light on this. A code sample will do great.
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: Jonathan Larouche [mailto:jlarouche@d...]
Sent: Thursday, March 06, 2003 1:21 PM
To: ASP.NET
Subject: [aspx] Re: xpath
try this:
//book[author and title]
It should works, ive made many xpath query of these kind in .Net
Jonathan
> hi group,
I am getting sick of it. .net doesn't even support a simple xpath
like
//book/(author,title) where author and title are
childnodes of book.
Regards
Rohit Arora
Message #3 by "Jonathan Larouche" <jlarouche@d...> on Fri, 7 Mar 2003 13:27:34
|
|
Rohit Arora wrote:
>....I am getting sick of it. .net doesn't even support a simple xpath
like //book/(author,title) where author and title are childnodes of book...
I want to know : Do you want to select the childndoes(author and title) or
test if are childnodes of book?
Rohit Arora wrote:
>.... One more problem I was facing was when I give xpath like //book
[position() = first()] and it asks somethin like using namespace manager.
Can u put some light on this. A code sample will do great....
To Use position() and first() functions in Xpath Query, you must add the
XSLT namespace, it's not a Xpath base function
PS : you can send email directly to me @ jlarouche@d...
Regards
Jonathan
|
|
 |