XPath: starts-with()

Discussion in 'XML' started by Timo Nentwig, Apr 27, 2004.

  1. Timo Nentwig

    Timo Nentwig Guest

    Hi!

    I want to select A having attribute href starting with "foo":

    //A[starts-with(@href, 'foo')]

    What's the correct syntax?

    Timo
     
    Timo Nentwig, Apr 27, 2004
    #1
    1. Advertising

  2. Timo Nentwig wrote:

    > I want to select A having attribute href starting with "foo":
    >
    > //A[starts-with(@href, 'foo')]
    >
    > What's the correct syntax?


    What you have looks fine to me. Is any XSLT or XPath processor giving
    you problems with that

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Apr 27, 2004
    #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. Marvin_123456

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

    Marvin_123456, Jul 29, 2005, in forum: Java
    Replies:
    4
    Views:
    1,975
    jan V
    Jul 29, 2005
  2. Alastair Cameron
    Replies:
    1
    Views:
    7,416
    SQL Server Development Team [MSFT]
    Jul 8, 2003
  3. Anna
    Replies:
    0
    Views:
    528
  4. goog
    Replies:
    0
    Views:
    509
  5. Xuejun Li \(SH/RDC\)
    Replies:
    1
    Views:
    488
    Martin Honnen
    Feb 19, 2004
Loading...

Share This Page