summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-08-09 14:57:55 (GMT)
committerFred Drake <fdrake@acm.org>2002-08-09 14:57:55 (GMT)
commita3502703029dbe09c705417c56191784e56a062e (patch)
treedf753bd8155da47bc7281ef55773b7d2e85713c4
parent1403b9fecd40b5c9fdc8c2eabef457bf79c68eb5 (diff)
downloadcpython-a3502703029dbe09c705417c56191784e56a062e.zip
cpython-a3502703029dbe09c705417c56191784e56a062e.tar.gz
cpython-a3502703029dbe09c705417c56191784e56a062e.tar.bz2
New entries to track the DOM API growth. These match names exposed in
PyXML 0.8.
-rw-r--r--Lib/xml/dom/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/xml/dom/__init__.py b/Lib/xml/dom/__init__.py
index dab06ac..11cd3da 100644
--- a/Lib/xml/dom/__init__.py
+++ b/Lib/xml/dom/__init__.py
@@ -55,6 +55,7 @@ SYNTAX_ERR = 12
INVALID_MODIFICATION_ERR = 13
NAMESPACE_ERR = 14
INVALID_ACCESS_ERR = 15
+VALIDATION_ERR = 16
class DOMException(Exception):
@@ -116,10 +117,14 @@ class NamespaceErr(DOMException):
class InvalidAccessErr(DOMException):
code = INVALID_ACCESS_ERR
+class ValidationErr(DOMException):
+ code = VALIDATION_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
+EMPTY_PREFIX = None
from domreg import getDOMImplementation,registerDOMImplementation