I have a .out file which has xml content like this.
<header stub>
<article type="audio">
<addedDate>2010-03-11 05:11:57</addedDate>
<thumbnail>http://fgsdfff/4588/thumbnail_9.jpg</thumbnail>
<asset="blarga.mp3" addedDate="2009-01-07 01:48:37">
<size>3289048</size>
<duration>206000</duration>
<mime_type>audio/mpeg</mime_type>
</asset>
</article>
</footer stub>
- I have to add
<?xml version="1.0"?>
and</xml>
at the start of the xml and at the end respectively. - I have to replace
<header stub>
and</footer stub>
with<channel>
and</channel>
tags respectively. - You might have noticed the XML is not well formed in the
<asset>
tag. It has to be like<asset url="blarga.mp3" addedDate="2009-01-07 01:48:37">
. How do I add the url attribute? - In the thumbnail tag, i have to remove _9 from the jpg's name.
And finally, i have to convert the .out to .xml file.
Please help me with these