Given a xml like this:
<nitf>
...
<body-content>
<p>Paragraph1</p>
<p>Paragraph2</p>
<hl2>Subheadline1</hl2>
<p>Paragraph3</p>
<p>Paragraph4</p>
<table>
<tr><td>data1</td><td>data2</td></tr>
<tr><td>data3</td><td>data4</td></tr>
</table>
<media>
<media-reference source="abc.jpg"/>
</media>
<hl2>Subheadline2</hl2>
<p>Paragraph5</p>
</body-content>
</nitf>
How can I form a HTML such that the content will be in order such like that in the xml?
ie. ... something like this.
<html>
<body>
<p>Paragraph1</p>
<p>Paragraph2</p>
<b>Subheadline1</b>
<p>Paragraph3</p>
<p>Paragraph4</p>
<table>
<tr><td>data1</td><td>data2</td></tr>
<tr><td>data3</td><td>data4</td></tr>
</table>
<img src="abc.jpg">
<b>Subheadline2</b>
<p>Paragraph5</p>
</body>
</html>
<nitf>
...
<body-content>
<p>Paragraph1</p>
<p>Paragraph2</p>
<hl2>Subheadline1</hl2>
<p>Paragraph3</p>
<p>Paragraph4</p>
<table>
<tr><td>data1</td><td>data2</td></tr>
<tr><td>data3</td><td>data4</td></tr>
</table>
<media>
<media-reference source="abc.jpg"/>
</media>
<hl2>Subheadline2</hl2>
<p>Paragraph5</p>
</body-content>
</nitf>
How can I form a HTML such that the content will be in order such like that in the xml?
ie. ... something like this.
<html>
<body>
<p>Paragraph1</p>
<p>Paragraph2</p>
<b>Subheadline1</b>
<p>Paragraph3</p>
<p>Paragraph4</p>
<table>
<tr><td>data1</td><td>data2</td></tr>
<tr><td>data3</td><td>data4</td></tr>
</table>
<img src="abc.jpg">
<b>Subheadline2</b>
<p>Paragraph5</p>
</body>
</html>