<?standalone yes?>

Andrew Clover and-google at doxdesk.com
Tue Sep 23 03:31:38 EDT 2003


Lonnie, SRC employee <lonnies at tgf.tc.faa.gov> wrote:

> I can figure out how to set the standalone attribute in the <? xml
> version="1.0 ?> tag eg <?xml version="1.0" standalone="yes" ?>

To set this in DOM terms you would need to use the DOM Level 3 Core
property 'xmlStandalone' on the Document object, see:

  http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-standalone

However, DOM3 is still in Working Draft (though hopefully not for
much longer), and it's not yet supported by minidom. If you don't mind
trying a different DOM implementation, this one supports it:

  http://www.doxdesk.com/software/py/pxdom.html

-- 
Andrew Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/




More information about the Python-list mailing list