/** * Creates a {@link AbstractStructuredOutput.TagBuilder} used to fluently create the root element. * * @param rootElement name of the root element * @return a tag builder which can be used to build the root element */ @CheckReturnValue public TagBuilder buildBegin(@Nonnull String rootElement) { if (opensCalled == 0) { try { hd.startDocument(); } catch (SAXException e) { throw Exceptions.handle(e); } } opensCalled++; return buildObject(rootElement); }