Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Why is xom 1.1 only using parts of jaxen?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Manfred Nysted Berry" <Manfred.Berry AT fast.no>
  • To: <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] Why is xom 1.1 only using parts of jaxen?
  • Date: Thu, 13 Jul 2006 09:18:26 +0200

Hi



I just realized that xom 1.1 is only using parts of the jaxen library.



If I for example try to do the following:

try {

Document doc = SAXReader().read(somefile);

doc.valueOf("//version/@product-version");

} catch (Exception ex) {

System.out.println(ex.getMessage());

}



I get the exception:

Invalid XPath expression: '//version/@product-version: Caused by:
org/jaxen/dom4j/Dom4JXPath



The reason for that is that the Dom4JXPath class is not included in xom.

What is the reason to not include this class, or actually to not include
everything of jaxen.



I know I can solve this by just including the jaxen.jar file as well but
than shy is the jaxen included in xom?

Are there any better ways to resolve this?



Thanks for enlightening me. :-)





Archive powered by MHonArc 2.6.24.

Top of Page