is already fixed, see bugzilla !

-----Original Message-----
From: Thomas B�rkel [mailto:[EMAIL PROTECTED]
Sent: dinsdag 26 februari 2002 12:54
To: Xerces Mailinglist
Subject: Bad bug in Xerces?


HI!

Consider the following XML, which is being built with 
dbf = DocumentBuilderFactory.newInstance();
db = dbf.newDocumentBuilder();
doc = db.parse(new InputSource(new StringReader(text))):

<convert><p0><![CDATA[100200]]></p0><p1><![CDATA[<Auswahl>\r\n<pos
nr='1'
menge='100'/>\r\n</Auswahl>]]></p1><p2><![CDATA[Auftrag]]></p2></convert
>


If you write out the document after this with 
streamResult = new StreamResult(new StringWriter());
transformer = TransformerFactory.newInstance().newTransformer();
transformer.transform(new DOMSource(node), streamResult), then you get
this:

<convert><p0><![CDATA[100200]]></p0><p1><![CDATA[100200<Auswahl>\r\n<pos
nr='1'
menge='100'/>\r\n</Auswahl>]]></p1><p2><![CDATA[Auftrag]]></p2></convert
>


Clearly, the XML is damaged. And it's not the Transformer's fault,
because if you iterate through the DOM, you see that the 2nd CDATA node
really has the wrong data.


Anyone any idea, please? Am I doing something wrong?


Regards,
Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to