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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

Qt4: how to send QString inside a struct via QSharedMemory -