elementtree ProcessingInstructions

"Werner F. Bruhin" <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
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") %
                            (__version__.twcbVERSION_STRING))
    doc.append(pi2) # append is not what I want/need

Thanks in advance for any help
Werner




_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.