[ 
https://issues.apache.org/jira/browse/XERCESJ-937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elliotte Rusty Harold closed XERCESJ-937.
-----------------------------------------

> Cloned document serialized with resolved entities
> -------------------------------------------------
>
>                 Key: XERCESJ-937
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-937
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: Serialization
>    Affects Versions: 2.6.2
>         Environment: Operating System: All
> Platform: All
>            Reporter: Martin Vysny
>              Labels: mino
>             Fix For: 2.8.1
>
>
> 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.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to