generic XML parser for arbitrary documents: this revision could be forked as relpipe-in-sax v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 11 Jan 2019 16:20:25 +0100
branchv_0
changeset 7 85741b08db48
parent 6 be83e0f457a8
child 8 14e14a5db027
generic XML parser for arbitrary documents: this revision could be forked as relpipe-in-sax
src/XMLCommand.h
--- a/src/XMLCommand.h	Fri Jan 11 16:13:21 2019 +0100
+++ b/src/XMLCommand.h	Fri Jan 11 16:20:25 2019 +0100
@@ -122,6 +122,14 @@
 			writer->writeAttribute(L"");
 		}
 
+		void processingInstruction(const XMLCh * const target, const XMLCh * const data) override {
+			writer->writeAttribute(L"processingInstruction");
+			writer->writeAttribute(L"");
+			writer->writeAttribute(L"");
+			writer->writeAttribute(xConvertor.toString(target));
+			writer->writeAttribute(xConvertor.toString(data));
+		}
+
 		void endDocument() override {
 			writer->writeAttribute(L"endDocument");
 			writer->writeAttribute(L"");