2005-12-12 | paulb | raw annotate files changeset graph | [project @ 2005-12-12 10:35:35 by paulb] Improved xmlns attribute controls, suppressing xmlns:xmlns creation. Updated release information. |
1 #!/usr/bin/env python 2 3 import libxml2dom 4 5 document = libxml2dom.createDocument(None, "doc", None) 6 e = document.xpath("*")[0] 7 e.setAttributeNS("xxx", "yyy", "zzz") 8 e.setAttributeNS("xxx", "yyy", "zzz") 9 e.setAttributeNS("xxx", "x:yyy", "zzz") 10 e.setAttributeNS("xxx", "x:yyy", "zzz") 11 print document.toString() 12 13 # vim: tabstop=4 expandtab shiftwidth=4