You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2004/03/30 18:45:50 UTC
DO NOT REPLY [Bug 28055] New: -
Cloned document serialized with resolved entities
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: xerces-j-dev@xml.apache.org
ReportedBy: vysny@sozo.fns.uniba.sk
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org