HI! Thanks for both quick answers.
I confirm that this bug is fixed in the current build. But, the current build now generates a warning for missing schemas, even with schema validation dynamic. Is this intended? Regards, Thomas > -----Original Message----- > From: Thomas B�rkel > Sent: Dienstag, 26. Februar 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<Auswah > l>\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]
