> The dom4j docu says to include jaxp.jar in the classpath (but obviously > there is no jaxp.jar).
There is no need to include this in your classpath anymore, currently Java 5.0 includes the JAXP 1.3 API which allows for setting the 'state of XInclude processing'. > Can someone please provide me with some sample code on how to > set the JAXP parser and what needs to be set to be able to use > XInclude. The following code only works with a JAXP 1.3 compatible parser, make sure you have a JAXP 1.3 parser available in your classpath: <code> SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setXIncludeAware( true); factory.setNamespaceAware( true); SAXParser parser = factory.newSAXParser(); SAXReader reader = new SAXReader( parser.getXMLReader()); Document doc = reader.read( new InputSource( "file:test.xml")); </code> Regards, Edwin http://www.edankert.com/ ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user