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
NotImplementedErrorexception.
Attributes¶
-
xml.dtd.ContentParticle.children¶ Returns an iterator of
xml.dtd.ContentParticleobjects which represent the direct child content particles.
-
xml.dtd.ContentParticle.name¶ Returns a string with the element name for named content particles. Otherwise an
AttributeErrorexception is raised.
-
xml.dtd.ContentParticle.occurrence¶ Returns the occurrence constraint of the content partical as an
xml.dtd.Occurrenceenumeration.
-
xml.dtd.ContentParticle.type¶ Returns the content partical type as an
xml.dtd.ContentParticleTypeenumeration.
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__