ddn.data.xml.internal.events
Internal: shared event types used by the streaming reader, incremental reader, and token processing helpers.
This module is not part of the public API and may change at any time. The types are re-exported publicly via ddn.data.xml.stream.
enum XmlEventType
Types 3
enumXmlEventType
Kind of an XmlEvent.
START_ELEMENTStart element event.
END_ELEMENTEnd element event.
TEXTText content event.
COMMENTComment event.
PROCESSING_INSTRUCTIONProcessing instruction event.
CDATACDATA event.
DOCTYPEDOCTYPE event.
EOFEnd-of-input.
structXmlEvent
A streaming XML event.
Fields
XmlEventType typeEvent type.string nameName for start/end elements and processing instructions.string prefixPrefix part of `name` (empty if not present).string localLocal part of `name`.string namespaceUriNamespace URI resolved for this event name (may be empty).XmlEventAttribute[] attributesAttributes for `START_ELEMENT` events (may be empty).string textText payload for text/comment/cdata/pi/doctype events.XmlLocation locationLocation of the event in the input.size_t depthReader depth at this event.bool isEmptyElementIf `true`, this `START_ELEMENT` represents an empty element (`<a/>`).structXmlEventAttribute
Attribute delivered on XmlEventType.START_ELEMENT.
Fields
string nameAttribute QName as it appeared in the source.string prefixPrefix part of `name` (empty if not present).string localLocal part of `name`.string namespaceUriNamespace URI resolved for this attribute name (may be empty).string valueDecoded and normalized attribute value.