Hi, When parsing a huge XML file it's _very_ nice to get the line number a possible parsing error occurres in. This is the output upon error in my file using DOMConfigurator: log4j: Using URL [file:/C:/OnRelay/dist/MBX-0.5.0/etc/log4j-test.xml] for automatic log4j configuration. log4j: System property is :null log4j: Standard DocumentBuilderFactory search succeded. log4j: DocumentBuilderFactory is: com.sun.xml.parser.DocumentBuilderFactoryImpl log4j: URL to log4j.dtd is [jar:file:/C:/OnRelay/dist/MBX-0.5.0/lib/log4j.jar!/o rg/apache/log4j/xml/log4j.dtd]. log4j:ERROR Could not parse input stream [java.io.BufferedInputStream@7d13b5]. org.xml.sax.SAXParseException: Whitespace required before attributes. at com.sun.xml.parser.Parser.fatal(Parser.java:2817) at com.sun.xml.parser.Parser.fatal(Parser.java:2805) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1325) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at com.sun.xml.parser.DocumentBuilderImpl.parse(DocumentBuilderImpl.java :95) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :585) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :538) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionCon verter.java:455) at org.apache.log4j.Category.<clinit>(Category.java:146) at com.onrelay.log.Log.<clinit>(Log.java:18) at com.onrelay.mbx.startup.Mbx.getConfigurations(Mbx.java:162) at com.onrelay.mbx.startup.Mbx.start(Mbx.java:86) at com.onrelay.mbx.startup.Mbx.main(Mbx.java:53) log4j:ERROR No appenders could be found for category (root). log4j:ERROR Please initialize the log4j system properly. ... and no linenumber. How easy is it to add this information? -- Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]