U
Uri
Hi,
I am using apaches' XMLSerializer to serialize a DOM Document
as an OutputStream. 2 questions:
1) Is there a standard way of serializing XML(without using a specific
parser)?
2) Should there be any difference between explicitly setting the
OutputFormat
with "UTF-8" encoding or not setting it at all? from what I read the
default is "UTF-8" anyway, and the only difference would be the
"encoding" directive in the xml declaration. However, I am getting
different behavior in each case regarding the stream format(But I'm
still not sure it's the serializer and not something else). Is this
possible?
I am using apaches' XMLSerializer to serialize a DOM Document
as an OutputStream. 2 questions:
1) Is there a standard way of serializing XML(without using a specific
parser)?
2) Should there be any difference between explicitly setting the
OutputFormat
with "UTF-8" encoding or not setting it at all? from what I read the
default is "UTF-8" anyway, and the only difference would be the
"encoding" directive in the xml declaration. However, I am getting
different behavior in each case regarding the stream format(But I'm
still not sure it's the serializer and not something else). Is this
possible?