#include <stdexcept>
#include <sstream>
-#include "xmlwriter.h"
+#include "xmlwriter.hpp"
XmlWriter::XmlWriter(std::ostream& outstream)
: out(outstream), indent(0)
const std::string& lastsection = sections.back();
if (lastsection != name) {
std::ostringstream msg;
- msg << "mismtach in open/closeSection. Expected '"
+ msg << "mismatch in open/closeSection. Expected '"
<< lastsection << "' got '" << name << "'";
throw std::runtime_error(msg.str());
}
sections.pop_back();
-
+
indent--;
newLine();
// XXX: We should check for consistency here
if (closetag != "")
out << closetag << "\n";
}
-