mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Import UserDataHandler from PyXML.
This commit is contained in:
parent
b5698faa9d
commit
7c3c4669b7
1 changed files with 9 additions and 0 deletions
|
@ -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/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue