Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XPath for Xom

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Al Hopper <al AT logical-approach.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XPath for Xom
  • Date: Wed, 11 Jun 2003 12:13:42 -0400

Has anyone got an XPath facilty working with Xom?

Yes, based on Jaxen. Look in the archives, but it's not part of the core distro of either XOM or Jaxen yet.

Also - Elliotte mentioned making the parsed doc "read only" as a solution
to making xom thread safe. How is this done?

You can't really "do" that, but you can write code such that it never calls any setter methods or other methods that change the content of the document.

PS: Xom is a great piece of software! It's the only XML parser I've tried
that generates sensible error messages when presented with erraneous XML
input.

That's funny. XOM doesn't generate its own error messages when parsing. It just passes along whatever Xerces (or whatever parser you're using) tells it.
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page