2 #ifndef CHEPREP_XMLWRITER_H
3 #define CHEPREP_XMLWRITER_H 1
29 void referToDTD(std::string
name, std::string pid, std::string ref);
30 void referToDTD(std::string name, std::string system);
34 void print(std::string text);
41 void setAttribute(std::string name, std::vector<double> value);
75 std::map<std::string, std::string> attributes;
76 std::stack<std::string> openTags;
std::string normalizeText(std::string s)
void println(std::string text)
void printTag(std::string ns, std::string name)
void printTag(std::string name)
std::string defaultNameSpace
void printComment(std::string comment)
void closeDoc(bool force=false)
void printAttributes(int tagLength)
void referToDTD(std::string name, std::string pid, std::string ref)
XMLWriter(std::ostream *out, std::string indentString=" ", std::string defaultNameSpace="")
const XML_Char const XML_Char int standalone
void setAttribute(std::string ns, std::string name, std::string value)
void openTag(std::string name)
void print(std::string text)
void openTag(std::string ns, std::string name)
const XML_Char int const XML_Char * value
IndentPrintWriter * writer
std::string normalize(std::string s)
void setAttribute(std::string name, char *value)
void openDoc(std::string version="1.0", std::string encoding="", bool standalone=false)
void printPlain(std::string text)
void checkNameValid(std::string s)
void setAttribute(std::string ns, std::string name, double value)