XmlGrid Users Forum
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: 
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: 
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__

Best view with Google Chrome