Newbe Xpath question

Discussion in 'XML' started by Mike, May 7, 2007.

  1. Mike

    Mike Guest

    Hello,
    How do I select all the siblings of the Chord Element?
    Thanks
    Mike

    - <document>
    - <row>
    <Chord>C</Chord>
    <RootString>A</RootString>
    <E>Null</E>
    <A>3</A>
    <D>2</D>
    <G>0</G>
    <B>1</B>
    <E2>0</E2>
    </row>
    - <row>
    <Chord>Dm</Chord>
    <RootString>D</RootString>
    <E>Null</E>
    <A>Null</A>
    <D>0</D>
    <G>2</G>
    <B>3</B>
    <E2>1</E2>
    </row>
    </document>
     
    Mike, May 7, 2007
    #1
    1. Advertising

  2. In article <>,
    Mike <> wrote:

    >How do I select all the siblings of the Chord Element?


    //Chord/preceding-sibling::node() | //Chord/following-sibling::node()

    If you want the Chord element too,

    //Chord/parent::node()/node()

    -- Richard
    --
    "Consideration shall be given to the need for as many as 32 characters
    in some alphabets" - X3.4, 1963.
     
    Richard Tobin, May 7, 2007
    #2
    1. Advertising

  3. Mike

    Mike Guest

    Great!
    Thanks,
    Mike
     
    Mike, May 8, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UnlhbiBTbWl0aA==?=

    Easy SQL Question - Newbe

    =?Utf-8?B?UnlhbiBTbWl0aA==?=, Jan 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    316
    Bob Lehmann
    Jan 5, 2005
  2. =?Utf-8?B?b3o=?=

    Newbe question ---- response.writefile

    =?Utf-8?B?b3o=?=, Jan 9, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    311
    =?Utf-8?B?b3o=?=
    Jan 9, 2005
  3. =?Utf-8?B?UnlhbiBTbWl0aA==?=

    Newbe Question

    =?Utf-8?B?UnlhbiBTbWl0aA==?=, Sep 9, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    390
  4. Daniel Bello Urizarri

    Newbe question about location of assemblies.

    Daniel Bello Urizarri, Sep 30, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    310
    Daniel Bello Urizarri
    Sep 30, 2005
  5. Replies:
    7
    Views:
    355
Loading...

Share This Page