[opencms-dev] parse xml return null content in OpenCms

Ernesto De Santis ernesto.desantis at colaborativa.net
Fri Jul 16 00:58:02 CEST 2004


Hi List

I make a code that take an InputStream from a xml file and build a Document. 

Document document =docFactory.newDocumentBuilder().parse(new ByteArrayInputStream(out.toByteArray()));

if I run this code with a JUnit, work fine. But when run in OpenCms Document is bad.

document in OpenCms is instance of DeferredDocumentImpl
in JUnit is org.apache.crimson.tree.XmlDocument

Why parse work diferent in OpenCms?
How can fix this?

I work with:
Tomcat 4.1
OpenCms 5.0.0
I patch OpenCms for the Xerces issue.

Bye
Ernesto.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.720 / Virus Database: 476 - Release Date: 14/07/2004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040716/6f28676e/attachment.htm>


More information about the opencms-dev mailing list