You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Srinivasan D." <ds...@india.hp.com> on 2001/07/02 07:04:37 UTC

Re: XMLSerializer

When you are serializing, please ensure that you have set your OutputFormat
properties properly.

For eg, do you have OutputFormat properties set like this

   OutputFormat of = new OutputFormat(doc);   //Serialize DOM
   of.setPreserveSpace(false);
   of.setIndent(5);
   of.setLineWidth(80);

it works fine with me.

Hope this helps.



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org