Problems with ElementTree and ProcessingInstruction

Kent Tenney ktenney at gmail.com
Sun Jan 28 15:28:00 CET 2007


Howdy,

I want to generate the following file;

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet mystyle?>
<leo_file>stuff</leo_file>

How should I be doing this?

As far as I can tell, ElementTree() requires everything
to be inside the root element (leo_file)

Thanks,
Kent




More information about the Python-list mailing list