Package pyxb :: Module exceptions_ :: Class UnrecognizedDOMRootNodeError
[hide private]
[frames] | no frames]

Class UnrecognizedDOMRootNodeError

source code

              object --+                    
                       |                    
exceptions.BaseException --+                
                           |                
        exceptions.Exception --+            
                               |            
                   PyXBException --+        
                                   |        
                    BadDocumentError --+    
                                       |    
              StructuralBadDocumentError --+
                                           |
                                          UnrecognizedDOMRootNodeError

A root DOM node could not be resolved to a schema element

Instance Methods [hide private]
 
__get_node_name(self)
The QName of the node as a pyxb.namespace.ExpandedName
source code
 
__init__(self, node)
Raised when processing document and the content model is not satisfied.
source code

Inherited from PyXBException (private): _str_from_unicode

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
  node = None
The xml.dom.Element instance that could not be recognized

Inherited from PyXBException (private): _args, _kw

Properties [hide private]
  node_name
The QName of the node as a pyxb.namespace.ExpandedName

Inherited from StructuralBadDocumentError: container, content, element_use

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, node)
(Constructor)

source code 

Raised when processing document and the content model is not satisfied.

Parameters:
  • node - the value for the node attribute.
Overrides: object.__init__

Property Details [hide private]

node_name

The QName of the node as a pyxb.namespace.ExpandedName

Get Method:
__get_node_name(self) - The QName of the node as a pyxb.namespace.ExpandedName