Package xmlschema_acue :: Package validators :: Module exceptions :: Class XMLSchemaChildrenValidationError

Class XMLSchemaChildrenValidationError

source code


Raised when a child element is not validated.

:param validator: the XSD validator. :type validator: XsdValidator or function :param elem: the not validated XML element. :type elem: Element or ElementData :param index: the child index. :type index: int :param particle: the validator particle that generated the error. Maybe the validator itself. :type particle: ParticleMixin :param occurs: the particle occurrences. :type occurs: int :param expected: the expected element tags/object names. :type expected: str or list or tuple :param source: the XML resource that contains the error. :type source: XMLResource :param namespaces: is an optional mapping from namespace prefix to URI. :type namespaces: dict

Instance Methods

Inherited from XMLSchemaValidatorError: __setattr__

Method Details

__init__(self, validator, elem, index, particle, occurs=0, expected=None, source=None, namespaces=None)
(Constructor)

source code 
Decorators:
Overrides: XMLSchemaValidatorError.__init__

__str__(self)
(Informal representation operator)

source code 
Decorators:
Overrides: XMLSchemaValidatorError.__unicode__

__unicode__(self)

source code 
Decorators:
Overrides: XMLSchemaValidatorError.__unicode__

msg(self)

source code 
Decorators:
  • @property

origin_url(self)

source code 
Decorators:
  • @property

root(self)

source code 
Decorators:
  • @property

schema_url(self)

source code 
Decorators:
  • @property

sourceline(self)

source code 
Decorators:
  • @property