From 7c3c4669b7e0442af0a4926c6878c7c267f0eb10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 25 Jan 2003 17:11:07 +0000 Subject: Import UserDataHandler from PyXML. --- Lib/xml/dom/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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/" -- cgit v0.12