* John Davis wrote: >On Mon, Nov 14, 2011 at 9:57 AM, Alex Bligh <a...@alex.org.uk> wrote: >> how about >> >> xmllint Foo.xml --xpath "/XXX/(one|two)/YYY" > >Sadly, no. It says XPath error : Invalid expression with the caret >symbol beneath the first Parenthesis.
That is because you have an invalid expression, at least in XPath 1.0 which is all that libxml2 supports at this point, you cannot use the syntax above, you would have to use, say, a node test with a predicate like in `*[self::one or self::two]` for instance. See the definition <http://www.w3.org/TR/xpath/#NT-Step>. -- Björn Höhrmann · mailto:bjo...@hoehrmann.de · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml