Hi,
I am new to python development. I am using the Elementtree to parse and manipulate the XML file which contains the special characters with hexadecimal encoding. After the manipulation, I want to write the XML with the same ending format. When I try to write the XML the special characters are printed as decimal numbers by default. Is there any option to write the XML with special characters as hexadecimal values? like UTF-8, ASCII encoding method. Please suggest.
Dillibabu.
I am new to python development. I am using the Elementtree to parse and manipulate the XML file which contains the special characters with hexadecimal encoding. After the manipulation, I want to write the XML with the same ending format. When I try to write the XML the special characters are printed as decimal numbers by default. Is there any option to write the XML with special characters as hexadecimal values? like UTF-8, ASCII encoding method. Please suggest.
Output:<p aid:pstyle="TextInd" >In preparing the illustrations for this book, I have relied on the generosity of private archive owners Aleksandr Lavrent’ev, Natalia Galadzheva, Sophia Bogatyreva, Elena Radkovskaia, and Aleksandra Radkovskaia, as well as the helpful, considerate service of the staff at the Russian State Archive of Literature and the Arts (RGALI), The State Museum of V.V. Mayakovsky, The State Central Film Museum in Moscow<?AQ AQ: Is “The” part of these names? If so cap ok. If not “the” should be lowercase?>, the U.S. National Library of Medicine, the Harvard University Archives, Cambridge University Library, Columbia University Library, and F.I.L.M. Archives Inc., New York.</p>
Thanks,Dillibabu.