EntityType

Represents the type of an XML entity. Used by EntityRange.Entity.

Values

ValueMeaning
cdata

A cdata section: <![CDATA[ ... ]]>.

See_Also: http://www.w3.org/TR/REC-xml/#sec-cdata-sect

comment

An XML comment: <!-- ... -->.

See_Also: http://www.w3.org/TR/REC-xml/#sec-comments

elementStart

The start tag for an element. e.g. <foo name="value">.

See_Also: http://www.w3.org/TR/REC-xml/#sec-starttags

elementEnd

The end tag for an element. e.g. </foo>.

See_Also: http://www.w3.org/TR/REC-xml/#sec-starttags

elementEmpty

The tag for an element with no contents or matching end tag. e.g. <foo name="value"/>.

See_Also: http://www.w3.org/TR/REC-xml/#sec-starttags

pi

A processing instruction such as <?foo?>. Note that the <?xml ... ?> is skipped and not treated as an EntityType._pi.

See_Also: http://www.w3.org/TR/REC-xml/#sec-pi

text

The content of an element tag that is simple text.

If there is an entity other than the end tag following the text, then the text includes up to that entity.

Note however that character references (e.g. "&#42") and the predefined entity references (e.g. "&apos;") are left unprocessed in the text. In order for them to be processed, the text should be passed to either decodeXML or asDecodedXML. Entity references which are not predefined are considered invalid XML, because the DTD section is skipped, and thus they cannot be processed properly.

See_Also: http://www.w3.org/TR/REC-xml/#sec-starttags
dxml.util.decodeXML
dxml.util.asDecodedXML
dxml.util.parseStdEntityRef
dxml.util.parseCharRef
EntityRange.Entity._text

Meta