xml.dtd.PEDecl

The xml.dtd.PEDecl class represents an XML parsed entity declaration.

Base class: xml.dtd.EntityDecl -> xml.dtd.DTDComponent

class xml.dtd.PEDecl

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

Attributes

xml.dtd.EntityDecl.name

Returns a string with the name of the entity declaration.

xml.dtd.EntityDecl.public

Returns a string with the value of the public identifer, or None if not present.

xml.dtd.EntityDecl.system

Returns a string with the value of the system identifer, or None if not present.

xml.dtd.EntityDecl.value

Returns a string with the value of the entity declaration.

Methods

xml.dtd.EntityDecl.is_external()

Returns True if the entity declaration is an external entity.

xml.dtd.EntityDecl.is_internal()

Returns True if the entity declaration is an internal entity.

xml.dtd.EntityDecl.is_predefined()

Returns True if the entity declaration is one of the 5 predefined entities lt, gt, amp, apos and quot.

xml.dtd.EntityDecl.is_unparsed()

Returns True if the entity declaration is an unparsed entity.

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__