class Core::Portable::XmlWriter

Helper class to programmatically generate XML output.

#include <corexmlwriter.h>

class XmlWriter
{
public:
    // structs

    struct Attribute;

    // construction

    XmlWriter(IO::Stream& stream);

    // methods

    XmlWriter& beginDocumentUTF8();

    XmlWriter& startElement(
        CStringPtr name,
        const Attribute attributes[] = 0,
        int attrCount = 0,
        bool closed = false
    );

    XmlWriter& endElement(CStringPtr name);
};

// direct descendants

class HtmlWriter;