Jan. 20, 2009
6:59 p.m.
Hi, Ovnicraft wrote:
i created an xml now i want to make standalone declaration in my structure, how i can do it?
There isn't currently a way to set the flag programmatically, but you can just parse in the declaration like this: doc = etree.fromstring( '<?xml version="1.0" standalone="true"?><root/>') root = doc.getroot() root[:] = your_content_elements Stefan