Re: cvs commit: jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration XMLConfiguration.java DOM4JConfiguration.java XmlConfiguration.java

2003-01-14 Thread James Strachan
Rather than hacking dom4j you can just pass in the particular SAX XMLReader you want to use. e.g. XMLReader parser = new org.apache.xerces.parsers.SAXParser(); // then use with dom4j SAXReader reader = new SAXReader( parser ); Document doc = reader.read( "foo.xml" ); 

Re: cvs commit: jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration XMLConfiguration.java DOM4JConfiguration.java XmlConfiguration.java

2003-01-14 Thread Kelvin Tan
Not really. Its an awful hack! In SAXHelper.createXMLReader, I comment out XMLReader reader = createXMLReaderViaJAXP( validating, true ); and hardcode System.setProperty("org.xml.sax.driver", "org.apache.xerces.parsers.SAXParser"); to avoid using Rein's SAX driver.

Re: cvs commit: jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration XMLConfiguration.java DOM4JConfiguration.java XmlConfiguration.java

2003-01-14 Thread James Strachan
Wanna send me the patch & I'll apply it? James --- http://radio.weblogs.com/0112098/ - Original Message - From: "Kelvin Tan" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Tuesday, January 14, 2003 9:03 AM Subject: Re: cvs

Re: cvs commit: jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration XMLConfiguration.java DOM4JConfiguration.java XmlConfiguration.java

2003-01-14 Thread Kelvin Tan
One thing people should know about dom4j and Resin: they don't like each other very much. :-) I've patched dom4j to work with Resin. Its an awful workaround, but it works. Contact me if anyone needs the patch. Kelvin -- To unsubscribe, e-mail: