Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 21st, 2006, 06:05 AM
Aaron
Guest
 
Posts: n/a
Default Xpath question

Hello,

I am using Xpath to group 20 <name> tags together, how would I do that?

Donors/Name???

<Donors>

<Name >

Abigail Sears

</Name>

<Name >

Alicia &amp; Joe Swindel

</Name>

<Name >

Alissa &amp; Neal Keny-Guyer

</Name>

<Name >

Ann Bremer &amp; Earl Molander

</Name>

....

</Donors>


  #2  
Old February 21st, 2006, 12:25 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: Xpath question


Aaron wrote:
[color=blue]
> I am using Xpath to group 20 <name> tags together, how would I do that?
>
> Donors/Name???[/color]

Well, which 20 Name elements do you want to select? The first 20?
Donors/Name[position() < 21]

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
  #3  
Old February 21st, 2006, 12:35 PM
Cerebrus99
Guest
 
Posts: n/a
Default Re: Xpath question

Hi Aaron,

Please elaborate on what you mean by "group 20 <name> tags together".

1. What do you intend to do with the data ? What kind of result
(value/nodelist) do you want to retrieve ?
2. Are you using the .NET Framework to access this XML file ?

Regards,

Cerebrus.

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles