START_ELEMENT event.buildStartTagEvent
fn
XmlEvent buildStartTagEvent(
ref TokenProcessingState state,
const XmlToken tok,
bool decodeEntities,
bool normalizeValues,
const ref XmlParserLimits limits) @safeProcesses a START_TAG token and returns the corresponding XmlEvent.
This function:
- Extracts namespace declarations from the token's attributes.
- Pushes a new namespace scope onto the state.
- Resolves the element's namespace URI.
- Resolves each attribute's namespace URI.
- Updates the element stack (non-empty tags) or sets pending end state
(empty tags).
Parameters
state | Mutable processing state (stacks are updated). |
tok | The START_TAG token. |
decodeEntities | If true, decode entity references in attribute values. |
normalizeValues | If true, normalize attribute values after decoding. |
limits | Parser limits for entity expansion safety. |
Returns
A