I've this function that write a XML string.
Is possible to do it without ElementTree but with DOM?
Thanks.
import sys
import elementtree.ElementTree as ET
root = ET.Element("manager")
req=ET.SubElement(root,"request")
app= ET.SubElement(req,"append")
app.set("mode","INPUT")
met=ET.SubElement(app,"method")
met.set("type","GOOD")
src="" name="st">ET.SubElement(app,"source")
src.set("address"," 127.0.0.1")
act=ET.SubElement(app,"action")
act.set("option","OK")
tree = ET.ElementTree(root)
tree.write(sys.stdout)
--
Sbaush
_______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig