DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16387>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16387 Problems with CDATA Sections Summary: Problems with CDATA Sections Product: Xerces2-J Version: 2.2.1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] This is my XML-Stream to parse: <?xml version="1.0" encoding="ISO-8859-1"?> <Data><Header><Action></Action><DbLink>section</DbLink></Header> <Record Line="0"><Flag></Flag><Type></Type><Level>0</Level><Element> <SYSTEMTBLID><![CDATA[28]]></SYSTEMTBLID></Element> <Element><createdate><![CDATA[2003-01-16 18:25:17.0]]></createdate></Element> <Element><modifydate><![CDATA[]]></modifydate></Element> <Element><modifyuser><![CDATA[]]></modifyuser></Element> <Element><identifier><![CDATA[1496]]></identifier></Element> <Element><identifierdo><![CDATA[]]></identifierdo></Element> <Element><causedo><![CDATA[]]></causedo></Element> <Element><Name><![CDATA[Start]]></Name></Element> <Element><Script><![CDATA[]]></Script></Element> <Element><Sectiontext> <![CDATA[ <HTML> <HEAD> <TITLE>EAP</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso8859-1"/> </HEAD> <frameset cols="60%,40%"> <frame name="Tree" src="/cocoon/EAP/Report/Activity?DbLink=activity"/> <frameset rows="20%,80%"> <frame src="" name="Overview"/> <frame src="" name="DataObject"/> </frameset> </frameset> <BODY TOPMARGIN="0" LEFTMARGIN="0" BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#808080" ALINK="#000000" class="clsNoMenuBar"> </BODY> </HTML>]]></Sectiontext> </Element> </Record> </Data> If a CDATA Section contains Newlines like in this case the CDATA - Section inside the tag <Sectiontext> the result of the dom-tree of this CDATA section contains the content of all previous CDATA - Sections in this case: 282003-01-16 18:25:17.01496Start<HTML> <HEAD> <TITLE>EAP</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso8859-1"/> </HEAD> <frameset cols="60%,40%"> <frame name="Tree" src="/cocoon/EAP/Report/Activity?DbLink=activity"/> <frameset rows="20%,80%"> <frame src="" name="Overview"/> <frame src="" name="DataObject"/> </frameset> </frameset> <BODY TOPMARGIN="0" LEFTMARGIN="0" BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#808080" ALINK="#000000" class="clsNoMenuBar"> </BODY> </HTML> what is wrong?? If I eleminate the newlines in the CDATA Section of <Sectiontext> all works fine. Unfortunately I need the newlines. Greetings Sandro Secci --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
