[EMAIL PROTECTED] wrote:
> 
> String xml = "";
> StringWriter writer = new StringWriter();
> OutputFormat of = new OutputFormat(doc, "UTF-8", false);
> of.setIndenting(false);
> XMLSerializer xmlser = new XMLSerializer(writer, of);
> xmlser.serialize(doc);
> writer.flush();
> xml = writer.toString();
> 

I don't see any problem with your code I ran it locally and it worked
fine. 
You could try adding xmlser.asDOMSerializer() before serialize() call.


Elena.

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

Reply via email to