ok, I have a xml file, and I have a parser, but sometimes the xml is all on one line so that my parser cant understand it... I need a script that will turn this:
<tag><tag><tag><item><title>blah</title><link>blah</link><something>blah</something></item></tag></tag></tag>
into:
<tag>
<tag>
<tag>
<item>
<title>blah</title>
<link>blah</link>
<something>blah</something>
</item>
</tag>
</tag>
</tag>
the only thing that i really want is the <title>blah</title>, the <link>blah</link>, and the </item>, and there can be many or few <tag>'s and </tag>'s and there can be lots of <item> ... </item> after each other...