Support Requests item #1273839, was opened at 2005-08-26 00:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=216035&aid=1273839&group_id=16035
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: use of javolution as a XMLReaderImpl in SAXReader()
Initial Comment:
Hi
would like to use Javolution (www.javolution.org)'s
XMLReaderImpl (which implements the XMLReader
interface) for DOM4J in one of our projects.
code is below:
private Document parseDocument(byte[] xmlformin) throws
Exception {
Document m_dom4jdoc;
try {
ByteArrayInputStream bread = new
ByteArrayInputStream(xmlformin);
SAXReader reader = new SAXReader(new
javolution.xml.sax.XMLReaderImpl());
m_dom4jdoc = reader.read(bread);
return m_dom4jdoc;
} catch (Exception e) {
logger.error("parseDocument: Failed to parse
document:", e);
throw e;
}
}
The code fails with the following exception:
org.dom4j.DocumentException: Error on line 1 of
document : '>' expected (position:line 1, column
48243) Nested exception: '>' expected (position:line
1, column 48243)
at org.dom4j.io.SAXReader.read(SAXReader.java:339)
at org.dom4j.io.SAXReader.read(SAXReader.java:246)
Removing the javolution's XMLReaderImpl makes the
parsing work again.
Please help!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=216035&aid=1273839&group_id=16035
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
dom4j-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev