buildStartTagEvent

fnXmlEvent buildStartTagEvent( ref TokenProcessingState state, const XmlToken tok, bool decodeEntities, bool normalizeValues, const ref XmlParserLimits limits) @safe

Processes a START_TAG token and returns the corresponding XmlEvent.

This function:

  1. Extracts namespace declarations from the token's attributes.
  2. Pushes a new namespace scope onto the state.
  3. Resolves the element's namespace URI.
  4. Resolves each attribute's namespace URI.
  5. Updates the element stack (non-empty tags) or sets pending end state (empty tags).

    Parameters

    stateMutable processing state (stacks are updated).
    tokThe START_TAG token.
    decodeEntitiesIf true, decode entity references in attribute values.
    normalizeValuesIf true, normalize attribute values after decoding.
    limitsParser limits for entity expansion safety.

    Returns

    A START_ELEMENT event.