xpath finding duplicates

Discussion in 'XML' started by Timo Nentwig, Dec 25, 2004.

  1. Timo Nentwig

    Timo Nentwig Guest

    Hi!

    <node>
    <name>foo</name>
    <id>1</id>
    <age>7</age>
    </node>
    <node.....>
    <node>
    <name>foo</name>
    <id>10</id>
    <age>100</age>
    </node>
    <node.....>
    <node>
    <name>bar</name>
    <id>123</id>
    <age>5</age>
    </node>
    <node.....>
    <node>
    <name>bar</name>
    <id>321</id>
    <age>10</age>
    </node>

    I try to write an xpath expression that does select duplicates (the foo's
    and bar's in above's example) and also add a condition which (not) to
    select (the age tag above).

    Well, I have failed so far :)

    Timo
     
    Timo Nentwig, Dec 25, 2004
    #1
    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. Benz
    Replies:
    3
    Views:
    495
    Mark Murphy
    Feb 3, 2005
  2. Marvin_123456

    "Memory leak" in javax.xml.xpath.XPath

    Marvin_123456, Jul 29, 2005, in forum: Java
    Replies:
    4
    Views:
    2,009
    jan V
    Jul 29, 2005
  3. Alastair Cameron
    Replies:
    1
    Views:
    7,479
    SQL Server Development Team [MSFT]
    Jul 8, 2003
  4. Anna
    Replies:
    0
    Views:
    554
  5. goog
    Replies:
    0
    Views:
    526
Loading...

Share This Page