diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-01-25 17:11:07 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-01-25 17:11:07 (GMT) |
commit | 7c3c4669b7e0442af0a4926c6878c7c267f0eb10 (patch) | |
tree | 56e09e4817d799f7038a7a12daed421d51d8007d /Lib/xml | |
parent | b5698faa9d2718aff3e738f2a802a8860b85493f (diff) | |
download | cpython-7c3c4669b7e0442af0a4926c6878c7c267f0eb10.zip cpython-7c3c4669b7e0442af0a4926c6878c7c267f0eb10.tar.gz cpython-7c3c4669b7e0442af0a4926c6878c7c267f0eb10.tar.bz2 |
Import UserDataHandler from PyXML.
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/dom/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/xml/dom/__init__.py b/Lib/xml/dom/__init__.py index 11cd3da..40a1a76 100644 --- a/Lib/xml/dom/__init__.py +++ b/Lib/xml/dom/__init__.py @@ -120,6 +120,15 @@ class InvalidAccessErr(DOMException): class ValidationErr(DOMException): code = VALIDATION_ERR +class UserDataHandler: + """Class giving the operation constants for UserDataHandler.handle().""" + + # Based on DOM Level 3 (WD 9 April 2002) + + NODE_CLONED = 1 + NODE_IMPORTED = 2 + NODE_DELETED = 3 + NODE_RENAMED = 4 XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace" XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/" |