<?standalone yes?>

Lonnie, SRC employee lonnies at tgf.tc.faa.gov
Mon Sep 22 19:39:36 CEST 2003


*** post for FREE via your newsreader at post.newsfeed.com ***

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

closest I have got to what I need is:
<?xml version="1.0" ?>
<?standalone yes?>
<xpg creator="crusher" version="1.0">
  <etr>
    <rebmun>

using minidom in this code(snippet):
  xmldoc = Document()
  pi = xmldoc.createProcessingInstruction("standalone","yes")
  xmldoc.appendChild(pi)
  xmlroot = xmldoc.createElement("xpg")
  xmlroot.setAttribute("version","1.0")
  xmlroot.setAttribute("creator","crusher")
  xmldoc.appendChild(xmlroot)

thx
Lonnie Souder



 -----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----
                  




More information about the Python-list mailing list