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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -