xsd.SchemaElement
¶
The xsd.SchemaElement
class represents a single <xs:schema> XML element.
- class xsd.SchemaElement¶
Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedError
exception.
Attributes¶
- xsd.SchemaElement.components¶
Returns an iterator of
xsd.Component
objects that are top level components physically present in this schema XML element. Please note that include, import, redefine and override are ignored when computing the result.
- xsd.SchemaElement.element¶
Returns the <xs:schema> xml.ElementInformationItem which is the underlying XML representation of this schema XML element.
- xsd.SchemaElement.id¶
Returns the value of the ‘id’ attribute as a string, or None if the schema XML element doesn’t have an ‘id’ attribute.
- xsd.SchemaElement.references¶
Returns an iterator of
xsd.Include
,xsd.Import
,xsd.Override
orxsd.Redefine
objects from this schema document to otherxsd.SchemaDocument
objects.
- xsd.SchemaElement.target_namespace¶
Returns the value of the targetNamespace attribute of this schema XML element.
- xsd.SchemaElement.version¶
Returns the value of the ‘version’ attribute as a string, or None if the schema XML element doesn’t have an ‘version’ attribute.
- xsd.SchemaElement.xml_lang¶
Returns the value of the ‘xml:lang’ attribute as a string, or None if the schema XML element doesn’t have an ‘xml:lang’ attribute.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__