1.1 --- a/tests/namespaces2.py Sun Feb 27 18:32:58 2011 +0100
1.2 +++ b/tests/namespaces2.py Sun Feb 27 18:55:07 2011 +0100
1.3 @@ -2,6 +2,9 @@
1.4
1.5 import libxml2dom, xml.dom, xml.dom.minidom
1.6
1.7 +print "Creating libxml2dom document..."
1.8 +print
1.9 +
1.10 document = libxml2dom.createDocument(None, "doc", None)
1.11 top = document.xpath("*")[0]
1.12 elem1 = document.createElementNS("DAV:", "myns:href")
1.13 @@ -10,6 +13,9 @@
1.14 document.replaceChild(elem1, top)
1.15 print document.toString()
1.16
1.17 +print "Creating minidom document..."
1.18 +print
1.19 +
1.20 document2 = xml.dom.minidom.Document()
1.21 elem1 = document2.createElementNS("DAV:", "myns:href")
1.22 elem1.setAttributeNS(xml.dom.XMLNS_NAMESPACE, "xmlns:myns", "DAV:")