Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 StoverFriend
Messages: 108
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 MerksFriend
Messages: 33113
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


Ed Merks
Professional Support: https://www.macromodeling.com/
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: Fri Mar 29 09:34:10 GMT 2024

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

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

Back to the top