Newbie XPath attribute value question

Discussion in 'XML' started by Nik, Feb 2, 2005.

  1. Nik

    Nik Guest

    Hello,

    I have XML-documents which are quite attribute-heavy and would like
    to search all attribute values for match with a certain string, no
    matter in what element or attribute they are found. What would the
    syntax be?

    Thanks in advance,
    -Nik
     
    Nik, Feb 2, 2005
    #1
    1. Advertising

  2. * Nik wrote in comp.text.xml:
    >I have XML-documents which are quite attribute-heavy and would like
    >to search all attribute values for match with a certain string, no
    >matter in what element or attribute they are found. What would the
    >syntax be?


    //@*[. = 'text-you-are-looking-for']

    Or instead of using = e.g. contains(...) depending on what you are
    looking for.
    --
    Björn Höhrmann · mailto: · http://bjoern.hoehrmann.de
    Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
    68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
     
    Bjoern Hoehrmann, Feb 2, 2005
    #2
    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. Alastair Cameron
    Replies:
    1
    Views:
    7,423
    SQL Server Development Team [MSFT]
    Jul 8, 2003
  2. Replies:
    2
    Views:
    1,081
    Henry S. Thompson
    Mar 6, 2006
  3. Replies:
    1
    Views:
    4,308
    Joe Kesselman
    Aug 2, 2006
  4. Replies:
    8
    Views:
    523
  5. bprimuslevy
    Replies:
    1
    Views:
    445
    Soren Kuula
    Aug 23, 2006
Loading...

Share This Page