equal
deleted
inserted
replaced
33 |
33 |
34 DOMBuildingSAXContentHandler(xmlpp::Document* document) : document(document) { |
34 DOMBuildingSAXContentHandler(xmlpp::Document* document) : document(document) { |
35 document->create_root_node("DOMBuildingSAXContentHandler"); // FIXME: real implementation |
35 document->create_root_node("DOMBuildingSAXContentHandler"); // FIXME: real implementation |
36 } |
36 } |
37 |
37 |
38 void abc() override { |
38 void writeStartElement(const std::string& name, const std::vector<std::string>& attributes) override { |
39 document->get_root_node()->add_child("abc"); |
39 } |
40 }; |
|
41 |
40 |
42 void def(int a) override { |
41 void writeEndElement() override { |
43 }; |
42 } |
44 |
43 |
45 void ghi(int a, int b) override { |
44 void writeCharacters(const std::string& text) override { |
46 }; |
45 } |
|
46 |
|
47 void writeComment(const std::string& text, bool addSpaces) override { |
|
48 document->get_root_node()->add_child_comment(addSpaces ? " " + text + " " : text); |
|
49 } |
47 |
50 |
48 }; |
51 }; |
49 |
52 |
50 } |
53 } |
51 } |
54 } |