No, that doesn't help, I am using these options:

      XmlOptions opts = new XmlOptions();
      opts.setCharacterEncoding("UTF-8");
      opts.setSavePrettyPrint();
      opts.setSavePrettyPrintOffset(0);
      opts.setSavePrettyPrintIndent(2);
      opts.setSaveNamespacesFirst();
      opts.setUseDefaultNamespace();
      response.save( out, opts);

Maarten

[EMAIL PROTECTED] wrote:

Hi Maarten,
Thanks for the help. To answer your query, I am not much sure much about it, however you can use the following to see whether the attributes are printed in next line or not.
code snippet is given here.....

XmlOptions mvOptions = new XmlOptions();
mvOptions.setSavePrettyPrint();
mvItemSpecDocument.save(new FileOutputStream(someFileName),mvOptions);


Hello,

How can I force xmlbeans to write attributes on a new line ?
I found some output formatting options in XmlOptions, but nothing to
force attributes to be on a new line.

Thanks,
Maarten

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



Reply via email to