--- a/libupnpp/soaphelp.cxx
+++ b/libupnpp/soaphelp.cxx
@@ -127,6 +127,22 @@
return true;
}
+string SoapArgs::xmlQuote(const string& in)
+{
+ string out;
+ for (unsigned int i = 0; i < in.size(); i++) {
+ switch(in[i]) {
+ case '"': out += """;break;
+ case '&': out += "&";break;
+ case '<': out += "<";break;
+ case '>': out += ">";break;
+ case '\'': out += "'";break;
+ default: out += in[i];
+ }
+ }
+ return out;
+}
+
IXML_Document *buildSoapBody(SoapData& data)
{
IXML_Document *doc = ixmlDocument_createDocument();
@@ -153,3 +169,4 @@
return doc;
}
+