How to add xml-stylesheet tag to XML file using python? -


i'm trying add xml-stylesheet tag in front of existing xml file using python.

eg. i'm trying add

<?xml-stylesheet type="text/xsl" href="audit_stylesheet.xsl" ?> 

to beginning of xml file.

if change line to

"<?xml-stylesheet type=\"text/xsl\" href=\"audit_stylesheet.xsl\" ?>" 

and use https://stackoverflow.com/a/5917395/4843078 should go


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -