xml.dtd.ElementDecl
¶
The xml.dtd.ElementDecl
class represents an XML element type declaration.
Base class: xml.dtd.DTDComponent
- class xml.dtd.ElementDecl¶
Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedError
exception.
Attributes¶
- xml.dtd.ElementDecl.attribute_definitions¶
Returns an iterator of
xml.dtd.AttDef
objects which represent the attribute definitions associated with this element declaration.
- xml.dtd.ElementDecl.attribute_list_declaration¶
Returns an xml.dtd.AttListDecl objects which represent the attribute list declaration associated with this element declaration.
- xml.dtd.ElementDecl.content_particles¶
Returns an iterator of
xml.dtd.ContentParticle
objects which represent the root content particles.
- xml.dtd.ElementDecl.content_spec¶
Returns the content model type as an
xml.dtd.ContentSpec
enumeration.
- xml.dtd.ElementDecl.name¶
Returns a string with the name of the element declaration.
Methods¶
- xml.dtd.ElementDecl.find_attribute_definition(name)¶
Returns an
xml.dtd.AttDef
object which represents the attribute definition with the given name, or None if no attribute definition was found.
- xml.dtd.DTDComponent.xlocation_url()
Returns proprietary Altova URL to this Component’s declaration. Returns None for Components witout a declaration (e.g. predefined entities).
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__