Hi,

It's a question related to white-space handling.
I've created a DOM object and would like to write it out into an XML file. It seems to be an easy task.
I can write it simply out with XMLWriter, then I'll get the whole XML file in one line. It's not very practical, since the XML file will be quite large and I would like to check this (conversion result) in a text editor...etc.


So I'd like to split the content to lines - somehow.
I can specify formatting for the XMLWriter
OutputFormat.createPrettyPrint()
... but it's not aware of the target DTD - of course, so it'll indent everything, which creates errors.


If the content model is a mixed content (#PCDATA + elements), then it's not allowed to insert extra white-space just for formatting, since it's changing the content!

I haven't found any option of the OutputFormat or the XMLWriter which solves this problem.

Please help!

Best regards,

  Barnabas Davoti




------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to