[XML-SIG] elementtree ProcessingInstructions

Werner F. Bruhin werner.bruhin at free.fr
Mon Dec 19 17:00:45 CET 2005

I think that the following are considered ProcessingInstructions.

<?xml version="1.0" encoding="UTF-8"?>
<?jaxfront version=1.60;time=2005-12-18 12:15:07.078;xsd=wineXML.xsd?>

Am I correct?

If yes how do I get them into file?

    doc = et.XML(doc_header)
    pi1 = et.ProcessingInstruction('xml version="1.0" encoding="UTF-8')
    doc.append(pi1) # append is not what I want/need
    pi2 = et.ProcessingInstruction(("twcb version=%s;xsd=wineXML.xsd") %
    doc.append(pi2) # append is not what I want/need

Thanks in advance for any help

More information about the XML-SIG mailing list