I have an xml file as follows:
<sample>
<attributes> xyz
</attributes>
</sample>
I want to add to the starting of xml:
<!DOCTYPE sample SYSTEM "location/sample.dtd">
I have to use python 2.5 only. So, can anybody please suggest how can i have this. I want final xml file to be:
<sample>
<!DOCTYPE sample SYSTEM "location/sample.dtd">
<attributes> xyz
</attributes>
</sample>