src/XmlHandler.h
branchv_0
changeset 15 26c945ea1733
parent 14 5094a7bf343d
child 19 3636510513d5
--- a/src/XmlHandler.h	Wed Jan 09 00:09:33 2019 +0100
+++ b/src/XmlHandler.h	Fri Jan 11 17:46:57 2019 +0100
@@ -40,6 +40,7 @@
 
 class XmlHandler : public handlers::RelationalReaderStringHadler {
 private:
+	const wstring XMLNS = L"tag:globalcode.info,2018:relpipe";
 	shared_ptr<XMLWriter> xmlWriter;
 	std::vector<TypeId> columnTypes;
 	std::vector<string_t> columnTypeCodes;
@@ -58,7 +59,7 @@
 		columnCount = 0;
 
 		if (relationCount == 0) {
-			xmlWriter->writeStartElement(L"relpipe",{L"xmlns", L"tag:globalcode.info,2018:relpipe"});
+			xmlWriter->writeStartElement(L"relpipe",{L"xmlns", XMLNS});
 		} else {
 			xmlWriter->writeEndElement();
 			xmlWriter->writeEndElement();