20 std::ostream & output;
25 std::list<std::string> pendingElems;
29 XMLWriter(
bool indent, std::ostream & output);
34 void openElement(std::string_view
name,
35 const XMLAttrs & attrs = XMLAttrs());
38 void writeEmptyElement(std::string_view
name,
39 const XMLAttrs & attrs = XMLAttrs());
42 void writeAttrs(
const XMLAttrs & attrs);
44 void indent_(
size_t depth);