attachParent method
Internal helper to attach the parent to the event, do not call directly.
Implementation
@internal
void attachParent(XmlStartElementEvent? parent) {
assert(_parent == null, 'Parent is already initialized.');
_parent = parent;
}