processing-instruction

How to insert a processing instruction in XML file?

How to insert a processing instruction in XML file? Question: I want to add a xml-stylesheet processing instruction before the root element in my XML file using ElementTree (Python 3.8). You find as below my code that I used to create XML file import xml.etree.cElementTree as ET def Export_star_xml( self ): star_element = ET.Element(“STAR”,**{ ‘ …

Total answers: 1