Re: XPath queries: is or/and possible? (tDOM)

Discussion in 'XML' started by Richard Tobin, May 2, 2008.

  1. In article <>,
    Mikhail Teterin <> wrote:

    > $txml selectNodes {//*[@xc:value!="FOO" and @xc:value!="BAR"}


    You seem to have a missing close-bracket, but I assume that's a typo.

    Otherwise the XPath looks reasonable - I don't know anything about tDOM..

    Bear in mind that @foo != "bar" means "there exists a foo attribute
    not equal to 'bar'". A node with no foo attribute doesn't pass.

    >I tried it with and without the xc:prefix... What am I doing wrong?


    Presumably you are doing whatever is necessary to bind that prefix.

    -- Richard
    --
    :wq
    Richard Tobin, May 2, 2008
    #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. thedebugger
    Replies:
    0
    Views:
    339
    thedebugger
    Nov 4, 2004
  2. Ian Roddis

    xslt queries in xml to SQL queries

    Ian Roddis, Feb 26, 2006, in forum: Python
    Replies:
    3
    Views:
    1,468
    Crutcher
    Feb 26, 2006
  3. Richard Tobin
    Replies:
    0
    Views:
    530
    Richard Tobin
    Apr 9, 2008
  4. Joseph J. Kesselman

    Re: more XPath struggles (tDOM)

    Joseph J. Kesselman, May 2, 2008, in forum: XML
    Replies:
    6
    Views:
    664
    Rolf Ade
    May 6, 2008
  5. Abby Lee

    so many queries within queries I'm confused

    Abby Lee, Aug 4, 2004, in forum: ASP General
    Replies:
    11
    Views:
    336
    Aaron [SQL Server MVP]
    Aug 6, 2004
Loading...

Share This Page