Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Xpath parsing problem

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Michael Kay <mike AT saxonica.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Xpath parsing problem
  • Date: Thu, 03 Mar 2011 15:17:37 +0000


BTW: I did see an XOM example somewhere, where a person showed you do
something
like: doc.query("/*:tag1/*:tag2"); so as to wildcard or ignore namespace
issues (which is
what I wanted to do). But XOM threw an exception about having a colon in
the xpath.
Is this doable?

This is XPath 2.0 syntax. I think XOM still only comes with an XPath 1.0 engine built-in. You can use an external XPath 2.0 engine though: Saxon works with XOM input.

Michael Kay
Saxonica




Archive powered by MHonArc 2.6.24.

Top of Page