--- a/libupnpp/ixmlwrap.cxx
+++ b/libupnpp/ixmlwrap.cxx
@@ -26,6 +26,7 @@
 
 namespace UPnPP {
 
+#if notUsedAnyMore
 // Get the value for the first element in the document with the given name.
 // There should be only one such element for this to make any sense.
 string getFirstElementValue(IXML_Document *doc, const string& name)
@@ -48,5 +49,18 @@
         ixmlNodeList_free(nodes);
     return ret;
 }
+#endif
+
+string ixmlwPrintDoc(IXML_Document* doc)
+{
+    DOMString s = ixmlPrintDocument(doc);
+    if (s) {
+        string cpps(s);
+        ixmlFreeDOMString(s);
+        return cpps;
+    } else {
+        return string();
+    }
+}
 
 }