xml.dtd.ContentParticle
¶
The xml.dtd.ContentParticle
class represents an XML content particle.
Base class: xml.dtd.DTDComponent
- class xml.dtd.ContentParticle¶
Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedError
exception.
Attributes¶
- xml.dtd.ContentParticle.children¶
Returns an iterator of
xml.dtd.ContentParticle
objects which represent the direct child content particles.
- xml.dtd.ContentParticle.name¶
Returns a string with the element name for named content particles. Otherwise an
AttributeError
exception is raised.
- xml.dtd.ContentParticle.occurrence¶
Returns the occurrence constraint of the content partical as an
xml.dtd.Occurrence
enumeration.
- xml.dtd.ContentParticle.type¶
Returns the content partical type as an
xml.dtd.ContentParticleType
enumeration.
Methods¶
- xml.dtd.ContentParticle.is_emptiable()¶
Returns True if the content particle is emptiable.
- 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__