xsd.AnyAttribute
¶
An attribute wildcard (xsd.AnyAttribute
schema component) provides for validation of xml.AttributeInformationItem
objects dependent on their namespace names and optionally on their local names.
Base class: xsd.Component
-
class
xsd.
AnyAttribute
¶ Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedError
exception.
Attributes¶
-
xsd.AnyAttribute.
annotations
¶ Returns an iterator of
xsd.Annotation
components.
-
xsd.Component.
element
Returns the
xml.ElementInformationItem
representing this schema component.
-
xsd.Component.
id
Returns the value of the ‘id’ attribute as a string, or None if the schema component’s XML element doesn’t have an ‘id’ attribute.
-
xsd.AnyAttribute.
namespace_constraint
¶ Returns a
xsd.NamespaceConstraint
property record.
-
xsd.AnyAttribute.
process_contents
¶ Returns one of {
xsd.ProcessContents.SKIP
,xsd.ProcessContents.STRICT
,xsd.ProcessContents.LAX
}. The process_contents property controls the impact on assessment of the information items allowed by wildcards, as follows:xsd.ProcessContents.STRICT
: There must be a top-level declaration for the item available, or the item must have an
xsi:type, and the item must be valid as appropriate.
xsd.ProcessContents.SKIP
: No constraints at all: the item must simply be well-formed XML.xsd.ProcessContents.LAX
: If the item has a uniquely determined declaration available, it must be valid.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__