You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ben Gill <be...@ocado.com> on 2005/03/08 09:11:02 UTC

Pretty XML!

Hi,

I have generated my XML using the EasyGenerationContentHandlerProxy (via
AbstractObjectReader), and the XML generated is not formatted.... (no line
breaks
between elements etc..)...

What is the best way to achieve properly (4 spaces?) indented xml?

It would just be easier to read whilst debugging...

Thanks

This message has been checked for all known viruses by the MessageLabs Virus Control Centre.

	
*********************************************************************

Notice:  This email is confidential and may contain copyright material of Ocado Limited (the "Company"). Opinions and views expressed in this message may not necessarily reflect the opinions and views of the Company.
If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses.

Company reg. no. 3875000.
Ocado Limited
Titan Court
3 Bishops Square
Hatfield Business Park
Hatfield
Herts
AL10 9NE


*********************************************************************

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


Re: Pretty XML!

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Ben Gill wrote:
> What is the best way to achieve properly (4 spaces?) indented xml?
> 
> It would just be easier to read whilst debugging...

Try XML Indent:
  http://xmlindent.sourceforge.net/
Read the docs carefully, and be aware that indentation may
and often will change the semantic of the XML.

Other possibility include using an identity XSL transformation
with a specific output declaration and in-memory stream editing.
You can ask on the XSL list or in appropriate Java related forums
for details.

J.Pietschmann

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