2012-04-18 19:51:58
You can use
http://xmlgrid.net online XML editor to reformat any XML code so that it will be indented properly and easy to read.
Xmlgrid.net provides 3 easy ways to load XML code:
- copy and paste the code to the input box,
- use browser file opener,
- get the XML document from internet by URL.
Once the XML code is loaded, you can choose the
TextView, the XML code will be displayed in a nice indented format. The elements will be indented according to their relationship to the root element.You can also choose to collapse the complex elements to hide the child elements for simplicity.
Here is an example. The unformatted XML code:
__code__
<Thread>
<GeneralInfo><Title>Thread title</Title>
<Description>test description</Description>
</GeneralInfo>
<Author UserId="test attribute" >
<Name>John Doe</Name>
<Email>johndoe@xmlgrid.net</Email>
<WebSite>xmlgrid.net</WebSite>
</Author><Post>
<Subject>how to view XML Document</Subject>
<Message>test string</Message>
<Author UserId="test attribute" >
<Name>test string</Name>
<Email>test string</Email>
</Author><TimeStamp><Date>2011-01-15</Date>
<Time>08:01:30</Time></TimeStamp></Post>
</Thread>
__code__
The formatted XML document:
__code__
<Thread>
<GeneralInfo>
<Title>Thread title</Title>
<Description>test description</Description>
</GeneralInfo>
<Author UserId="test attribute" >
<Name>John Doe</Name>
<Email>johndoe@xmlgrid.net</Email>
<WebSite>xmlgrid.net</WebSite>
</Author>
<Post>
<Subject>how to view XML Document</Subject>
<Message>test string</Message>
<Author UserId="test attribute" >
<Name>test string</Name>
<Email>test string</Email>
<WebSite>test string</WebSite>
</Author>
<TimeStamp>
<Date>2011-01-15</Date>
<Time>08:01:30</Time>
</TimeStamp>
</Post>
</Thread>
__code__
;3399;2012-04-18 19:51:58__s__You can use
http://xmlgrid.net online XML editor to reformat any XML code so that it will be indented properly and easy to read.
Xmlgrid.net provides 3 easy ways to load XML code:
- copy and paste the code to the input box,
- use browser file opener,
- get the XML document from internet by URL.
Once the XML code is loaded, you can choose the
TextView, the XML code will be displayed in a nice indented format. The elements will be indented according to their relationship to the root element.You can also choose to collapse the complex elements to hide the child elements for simplicity.
Here is an example. The unformatted XML code:
__code__
<Thread>
<GeneralInfo><Title>Thread title</Title>
<Description>test description</Description>
</GeneralInfo>
<Author UserId="test attribute" >
<Name>John Doe</Name>
<Email>johndoe@xmlgrid.net</Email>
<WebSite>xmlgrid.net</WebSite>
</Author><Post>
<Subject>how to view XML Document</Subject>
<Message>test string</Message>
<Author UserId="test attribute" >
<Name>test string</Name>
<Email>test string</Email>
</Author><TimeStamp><Date>2011-01-15</Date>
<Time>08:01:30</Time></TimeStamp></Post>
</Thread>
__code__
The formatted XML document:
__code__
<Thread>
<GeneralInfo>
<Title>Thread title</Title>
<Description>test description</Description>
</GeneralInfo>
<Author UserId="test attribute" >
<Name>John Doe</Name>
<Email>johndoe@xmlgrid.net</Email>
<WebSite>xmlgrid.net</WebSite>
</Author>
<Post>
<Subject>how to view XML Document</Subject>
<Message>test string</Message>
<Author UserId="test attribute" >
<Name>test string</Name>
<Email>test string</Email>
<WebSite>test string</WebSite>
</Author>
<TimeStamp>
<Date>2011-01-15</Date>
<Time>08:01:30</Time>
</TimeStamp>
</Post>
</Thread>
__code__
__s__~u=support~site=xmlgrid.net__s__XML Formatter Online__s____m__
17,CSS;100,General;15,javascript;16,javascript CSS;8,XML C/C++;10,XML converter;12,XML data warehouse;13,XML database;4,XML editor;1,XML general;11,XML HTML;7,XML java;6,XML javascript;5,XML parser;9,XML PHP;2,XML schema;3,XML syntax;14,XPath;