src/lib/DOMBuildingSAXContentHandler.h
branchv_0
changeset 6 6a4a348426d9
parent 5 15c3221e66af
--- a/src/lib/DOMBuildingSAXContentHandler.h	Sat Jun 12 19:15:58 2021 +0200
+++ b/src/lib/DOMBuildingSAXContentHandler.h	Sat Jun 12 20:31:23 2021 +0200
@@ -35,15 +35,18 @@
 		document->create_root_node("DOMBuildingSAXContentHandler"); // FIXME: real implementation
 	}
 
-	void abc() override {
-		document->get_root_node()->add_child("abc");
-	};
+	void writeStartElement(const std::string& name, const std::vector<std::string>& attributes) override {
+	}
+
+	void writeEndElement() override {
+	}
 
-	void def(int a) override {
-	};
+	void writeCharacters(const std::string& text) override {
+	}
 
-	void ghi(int a, int b) override {
-	};
+	void writeComment(const std::string& text, bool addSpaces) override {
+		document->get_root_node()->add_child_comment(addSpaces ? " " + text + " " : text);
+	}
 
 };