DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28055>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28055 Cloned document serialized with resolved entities Summary: Cloned document serialized with resolved entities Product: Xerces2-J Version: 2.6.2 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Serialization AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I'm using following code to serialize document: OutputFormat of = new OutputFormat("xml", "UTF-8", false); XMLSerializer ser = new XMLSerializer(of); ser.setOutputByteStream(output_stream); .... serializeDoc = (Document)doc.cloneNode(true); ser.asDOMSerializer().serialize(serializeDoc); doc is instance of Document. When serializing doc, it goes ok. However, when serializing serializeDoc, then in the result XML all entities are suddenly resolved and their definition is lost. serializeDoc however has all entities and EntityReferences as the original doc - it seems to be a perfect clone. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
