Builds the XML events for the elements to insert.
List<XmlEvent> buildEvents(String indent) { return [for (final tag in tags) ...tag.buildEvents(indent)]; }