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
stateMutable processing state (stacks are updated). tokThe START_TAGtoken.decodeEntitiesIf true, decode entity references in attribute values.normalizeValuesIf true, normalize attribute values after decoding.limitsParser limits for entity expansion safety. Returns
A