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 13: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 13:43 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26047
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: Wed Sep 17 11:54:12 GMT 2014

Powered by FUDForum. Page generated in 0.29258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software