Hi,

I am using following code to serialize a DOM to a byte stream or a file.

java.io.ByteArrayOutputStream byteStream = new java.io.ByteArrayOutputStream();

        org.apache.xml.serialize.OutputFormat outputFormat = 
                new org.apache.xml.serialize.OutputFormat(xmlDoc);
        
        org.apache.xml.serialize.XMLSerializer x = 
                        new org.apache.xml.serialize.XMLSerializer(
                                byteStream, 
                                outputFormat); 
                x.serialize(xmlDoc);


when it creates a byte stream or a file, it has following line;
<?xml version="1.0" encoding="UTF-8"?>


For certain reasons, I want to suppress the words encoding="UTF-8"
I do not want the serializer to write above attribute.
How do I do it?

regards
Haresh

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to