Hy there. In my CLASSPATH I have: dom4j.jar, xercesImpl.jar, jaxp.jar I have created a "jaxp.properties" file in <JAVA_HOME>/jre/lib directory with the following line:
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryIm pl ---------------------------------------- This is my small test class: ---------------------------------------- import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.io.SAXReader; import org.dom4j.Node; public class Test { public static void main(String[] args) { String file = "file:///d:\\tomcat\\conf\\apps-ROOT.xml"; SAXReader reader = new SAXReader(); try { Document document = reader.read(file); Node node = document.selectSingleNode( "/webapps/Context" ); String name = node.valueOf( "@docBase" ); System.out.println(name); } catch(DocumentException e) {} } } ------------------ / ------------------ When I run this class it keeps giving me the warning: Warning: Error occurred using JAXP to load a SAXParser. Will use Aelfred instead It just can't find my xerces parser!? Is something missing? Can someone please help me. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user