xml.dtd.AttlistDecl
¶
The xml.dtd.AttlistDecl
class represents an XML attribute-list declaration.
Base class: xml.dtd.DTDComponent
- class xml.dtd.AttlistDecl¶
Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedError
exception.
Attributes¶
- xml.dtd.AttlistDecl.attribute_definitions¶
Returns an iterator of
xml.dtd.AttDef
objects which represent the attribute definitions in this attribute list declaration.
- xml.dtd.AttlistDecl.name¶
Returns a string with the element name to which this attribute list declaration is associated to.
Methods¶
- xml.dtd.AttlistDecl.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__