Oct-15-2022, 02:29 PM
(Oct-15-2022, 02:26 PM)ndc85430 Wrote: Do you have a question? Why are you manipulating a string, instead of using objects to create the XML (e.g. with xml.etree.ElementTree)?I Have data frame, but now my code only output
<item>
<A>1</A>
<B>a</B
</item>
<item>
<A>2</A>
<B>b</B>
</item>
<item>
<A>3</A>
<B>c</B>
</item>
But I want to add header and root node so the my output looks like:
<Header> <Name></Names> <Release><</software> <Header> <Values> <item> <A>1</A> <B>a</B </item> <item> <A>2</A> <B>b</B> </item> <item> <A>3</A> <B>c</B> </item> <Values>