From: Martin v. Löwis Date: Sat, 25 Jan 2003 17:11:07 +0000 (+0000) Subject: Import UserDataHandler from PyXML. X-Git-Tag: v2.3c1~2332 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c3c4669b7e0442af0a4926c6878c7c267f0eb10;p=python Import UserDataHandler from PyXML. --- diff --git a/Lib/xml/dom/__init__.py b/Lib/xml/dom/__init__.py index 11cd3da658..40a1a76f36 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/"