Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » How to indent/reformat XML/XSD tags according to their hierarchy level?
How to indent/reformat XML/XSD tags according to their hierarchy level? [message #604453] Fri, 22 January 2010 08:31 Go to next message
Ben Stover
Messages: 104
Registered: January 2010
Senior Member
Sometimes I would like to re-format a given XML/XSD file so that the tags indented according to their hierarchy level.
For each level 2 blanks should be inserted at the beginning of a line..

How can I achieve this pretty print?

Ben
Re: How to indent/reformat XML/XSD tags according to their hierarchy level? [message #604460 is a reply to message #604453] Fri, 22 January 2010 08:43 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25947
Registered: July 2009
Senior Member
Ben,

Have a look at how XSDResourceImpl.doSerialize does that.


Ben wrote:
> Sometimes I would like to re-format a given XML/XSD file so that the
> tags indented according to their hierarchy level.
> For each level 2 blanks should be inserted at the beginning of a line..
>
> How can I achieve this pretty print?
>
> Ben
Previous Topic:How to create sample XML doc from XSD schema?
Next Topic:How to indent/reformat XML/XSD tags according to their hierarchy level?
Goto Forum:
  


Current Time: Thu Jul 31 07:49:46 EDT 2014

Powered by FUDForum. Page generated in 0.01398 seconds