Revert previous change for now; it breaks the build on distros with older
authorDan Winship <danw@src.gnome.org>
Thu, 8 Jul 2004 20:31:15 +0000 (20:31 +0000)
committerDan Winship <danw@src.gnome.org>
Thu, 8 Jul 2004 20:31:15 +0000 (20:31 +0000)
* libsoup/soup-soap-response.c: Revert previous change for now; it
breaks the build on distros with older libxmls.

ChangeLog
libsoup/soup-soap-response.c

index 0c8e47e..42d98d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2004-07-08  Dan Winship  <danw@novell.com>
 
+       * libsoup/soup-soap-response.c: Revert previous change for now; it
+       breaks the build on distros with older libxmls.
+
+2004-07-08  Dan Winship  <danw@novell.com>
+
        * tests/dict.c: Basic SOAP test, using Aonaware's SOAP->DICT
        gateway
 
index a7842b8..b0746d1 100644 (file)
@@ -15,7 +15,6 @@
 struct _SoupSoapResponsePrivate {
        /* the XML document */
        xmlDocPtr xmldoc;
-       xmlParserCtxtPtr ctxt;
        xmlNodePtr xml_root;
        xmlNodePtr xml_body;
        xmlNodePtr xml_method;
@@ -35,11 +34,6 @@ finalize (GObject *object)
                xmlFreeDoc (response->priv->xmldoc);
                response->priv->xmldoc = NULL;
        }
-       if (response->priv->ctxt) {
-               xmlFreeParserCtxt (response->priv->ctxt);
-               response->priv->ctxt = NULL;
-       }
-       
 
        response->priv->xml_root = NULL;
        response->priv->xml_body = NULL;
@@ -72,7 +66,6 @@ init (SoupSoapResponse *response, SoupSoapResponseClass *klass)
 {
        response->priv = g_new0 (SoupSoapResponsePrivate, 1);
 
-       response->priv->ctxt = xmlNewParserCtxt ();
        response->priv->xmldoc = xmlNewDoc ("1.0");
 }
 
@@ -159,9 +152,8 @@ soup_soap_response_from_string (SoupSoapResponse *response, const char *xmlstr)
        if (response->priv->xmldoc)
                old_doc = response->priv->xmldoc;
 
-       /* parse the string. We are using a parse context to make libxml 
-        * ignore blanks and '\n' for this document. */
-       response->priv->xmldoc = xmlCtxtReadMemory (response->priv->ctxt, xmlstr, strlen (xmlstr), NULL, NULL, XML_PARSE_NOBLANKS);
+       /* parse the string */
+       response->priv->xmldoc = xmlParseMemory (xmlstr, strlen (xmlstr));
        if (!response->priv->xmldoc) {
                response->priv->xmldoc = old_doc;
                return FALSE;