<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff background="">
<DIV><FONT face=Arial size=2>Hi List<BR><BR>I make a code that take an
InputStream from a xml file and build a Document. <BR><BR>Document document
=docFactory.newDocumentBuilder().parse(new
ByteArrayInputStream(out.toByteArray()));</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>if I run this code with a JUnit, work fine. But
when run in OpenCms Document is bad.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>document in OpenCms is instance of
DeferredDocumentImpl</FONT></DIV>
<DIV><FONT face=Arial size=2>in JUnit is
org.apache.crimson.tree.XmlDocument</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Why parse work diferent in OpenCms?</FONT></DIV>
<DIV><FONT face=Arial size=2>How can fix this?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I work with:</FONT></DIV>
<DIV><FONT face=Arial size=2>Tomcat 4.1</FONT></DIV>
<DIV><FONT face=Arial size=2>OpenCms 5.0.0</FONT></DIV>
<DIV><FONT face=Arial size=2>I patch OpenCms for the Xerces issue.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Bye</FONT></DIV>
<DIV><FONT face=Arial size=2>Ernesto.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>---<BR>Outgoing mail is certified Virus
Free.<BR>Checked by AVG anti-virus system (<A
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.720 /
Virus Database: 476 - Release Date: 14/07/2004</FONT></DIV></BODY></HTML>