title: ElementTree in Python 2.6.2 Processing Instructions support?
body: <p>I'm trying to create XML using the ElementTree object structure in python.  It all works very well except when it comes to processing instructions.  I can create a PI easily using the factory function ProcessingInstruction(), but it doesn't get added into the elementtree.  I can add it manually, but I can't figure out how to add it above the root element where PI's are normally placed.  Anyone know how to do this?  I know of plenty of alternative methods of doing it, but it seems that this must be built in somewhere that I just can't find.</p>