On 30 Nov 2005 07:22:56 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> quoted: > >>> element = document.createElementNS("DAV:", "href")
This call is incorrect; the signature is createElementNS(namespaceURI, qualifiedName). If you call .createElementNS('whatever', 'DAV:href'), the output is the expected: <?xml version="1.0" ?><DAV:href/> It doesn't look like there's any code in minidom that will automatically create an 'xmlns:DAV="whatever"' attribute for you. Is this automatic creation an expected behaviour? (I assume not. Section 1.3.3 of the DOM Level 3 says "Similarly, creating a node with a namespace prefix and namespace URI, or changing the namespace prefix of a node, does not result in any addition, removal, or modification of any special attributes for declaring the appropriate XML namespaces." So the DOM can create XML documents that aren't well-formed w.r.t. namespaces, I think.) --amk -- http://mail.python.org/mailman/listinfo/python-list