xml.dtd.AttDef

The xml.dtd.AttDef class represents an XML attribute definition.

Base class: xml.dtd.DTDComponent

class xml.dtd.AttDef

Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a NotImplementedError exception.

Attributes

xml.dtd.AttDef.default_decl

Returns the attribute definition default type as an xml.dtd.DefaultDecl enumeration.

xml.dtd.AttDef.default_value

Returns a string with the default value for this attribute definition, or None if this attribute definition does not have a default value.

xml.dtd.AttDef.enumeration_values

Returns an iterator of string objects which represent the possible enumeration values for this attribute definition.

xml.dtd.AttDef.name

Returns a string with the name of the attribute definition.

xml.dtd.AttDef.type

Returns the attribute definition type as an xml.dtd.AttType enumeration.

Methods

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__