Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
|
||||
Class for XSD 'assert' constraint declaration. <assert id = ID test = an XPath expression xpathDefaultNamespace = (anyURI | (##defaultNamespace | ##targetNamespace | ##local)) {any attributes with non-schema namespace . . .}> Content: (annotation?) </assert>
Instance Methods | |||
|
|||
|
|||
Inherited from Inherited from Inherited from |
Class Variables | |
token = None
|
|
Inherited from Inherited from |
Method Details |
|
Property that is ``True`` if schema validator has been fully parsed and built, ``False`` otherwise.
|
|
Returns the Element attributes. For compatibility with the ElementTree API.
|
A list with all the building errors of the XSD validator and its components.
|
Property that references to schema's default namespaces.
|
Finds the first XSD subelement matching the path. :param path: an XPath expression that considers the XSD component as the root element. :param namespaces: an optional mapping from namespace prefix to full name. :return: The first matching XSD subelement or ``None`` if there is not match.
|
Finds all XSD subelements matching the path. :param path: an XPath expression that considers the XSD component as the root element. :param namespaces: an optional mapping from namespace prefix to full name. :return: a list containing all matching XSD subelements in document order, an empty list is returned if there is no match.
|
Gets an Element attribute. For compatibility with the ElementTree API.
|
The ``'id'`` attribute of the component tag, ``None`` if missing.
|
Is `True` if the instance is a global component, `False` if it's local.
|
Returns `True` if the component name is matching the name provided as argument, `False` otherwise. :param name: a local or fully-qualified name. :param default_namespace: used if it's not None and not empty for completing the name argument in case it's a local name.
|
Creates an iterator for the XSD element and its subelements. If tag is not `None` or '*', only XSD elements whose matches tag are returned from the iterator. Local elements are expanded without repetitions. Element references are not expanded because the global elements are not descendants of other elements.
|
Creates an iterator for XSD ancestor components, schema excluded. Stops when the component is global or if the ancestor is not an instance of the specified class/classes. :param xsd_classes: provide a class or a tuple of classes to iterates over only a specific classes of components.
|
Creates an iterator for XSD subcomponents. :param xsd_classes: provide a class or a tuple of classes to iterates over only a specific classes of components.
|
Creates an iterator for the child elements of the XSD component. If *tag* is not `None` or '*', only XSD elements whose name matches tag are returned from the iterator.
|
Creates and iterator for all XSD subelements matching the path. :param path: an XPath expression that considers the XSD component as the root element. :param namespaces: is an optional mapping from namespace prefix to full name. :return: an iterable yielding all matching XSD subelements in document order.
|
|
Property that references to schema's global maps.
|
Property that references to schema's namespace mapping.
|
Helper method for registering parse errors. Does nothing if validation mode is 'skip'. Il validation mode is 'lax' collects the error, otherwise raise the error. :param error: can be a parse error or an error message. :param elem: the Element instance related to the error, for default uses the 'elem' attribute of the validator, if it's present.
|
|
|
The reference element of the schema for the component instance.
|
Property that references to schema source.
|
Alias of the *name* attribute. For compatibility with the ElementTree API.
|
Property that references to schema's targetNamespace.
|
Property that returns the *validation status* of the XSD validator. It can be 'full', 'partial' or 'none'. | https://www.w3.org/TR/xmlschema-1/#e-validation_attempted | https://www.w3.org/TR/2012/REC-xmlschema11-1-20120405/#e-validation_attempted
|
Property that returns the XSD validator's validity. It can be âvalidâ, âinvalidâ or ânotKnownâ. | https://www.w3.org/TR/xmlschema-1/#e-validity | https://www.w3.org/TR/2012/REC-xmlschema11-1-20120405/#e-validity
|
Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
Copyright(C) 2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez | https://arnocan.wordpress.com |
Generated by Epydoc 4.0.4 / Python-3.8 / fedora27 on Fri Dec 13 15:25:25 2019 | http://epydoc.sourceforge.net |