]> granicus.if.org Git - python/commitdiff
Import UserDataHandler from PyXML.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 25 Jan 2003 17:11:07 +0000 (17:11 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 25 Jan 2003 17:11:07 +0000 (17:11 +0000)
Lib/xml/dom/__init__.py

index 11cd3da6589e28c97f2aad6491433853ab299766..40a1a76f363e4c55d47b0209b9a810dcb4482ae6 100644 (file)
@@ -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/"