summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-11-30 15:37:33 (GMT)
committerFred Drake <fdrake@acm.org>2001-11-30 15:37:33 (GMT)
commitbd34b6bc3d18f968a985d745416aa0e54bdfce0c (patch)
treea5e174f12c0cdc01d16fcef0a8570c80fb317749 /Lib
parentb3be216b41a4755556a887baa6ab440279fbe1dc (diff)
downloadcpython-bd34b6bc3d18f968a985d745416aa0e54bdfce0c.zip
cpython-bd34b6bc3d18f968a985d745416aa0e54bdfce0c.tar.gz
cpython-bd34b6bc3d18f968a985d745416aa0e54bdfce0c.tar.bz2
Added the convenience constants that are present in PyXML to make these
more similar.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/xml/dom/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/xml/dom/__init__.py b/Lib/xml/dom/__init__.py
index aa19ca1..dab06ac 100644
--- a/Lib/xml/dom/__init__.py
+++ b/Lib/xml/dom/__init__.py
@@ -116,4 +116,10 @@ class NamespaceErr(DOMException):
class InvalidAccessErr(DOMException):
code = INVALID_ACCESS_ERR
+
+XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace"
+XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/"
+XHTML_NAMESPACE = "http://www.w3.org/1999/xhtml"
+EMPTY_NAMESPACE = None
+
from domreg import getDOMImplementation,registerDOMImplementation