diff --git a/ChangeLog b/ChangeLog index 9cca72f..1da7dc0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,14 @@ Version 1.8.0 ******************************************************************************* +2008-06-13 Marcelo Jimenez + * SF Bug Tracker [ 1984541 ] + ixmlDocumenttoString does not render the namespace tag. + Submitted By: Beliveau - belivo + + Undoing the patch that fixed this problem. In fact, there was no + problem and the patch was wrong. + 2008-06-11 Marcelo Jimenez * Fixed a buffer overflow due to a bug in the calculation of the CONTENT-TYPE header line size, the length was beeing calculated with diff --git a/ixml/src/ixml.c b/ixml/src/ixml.c index 1ad1c26..fe9851c 100644 --- a/ixml/src/ixml.c +++ b/ixml/src/ixml.c @@ -105,14 +105,12 @@ static void ixmlPrintDomTreeRecursive( { const char *nodeName = NULL; const char *nodeValue = NULL; - const char *nodeNameSpaceURI = NULL; IXML_Node *child = NULL, *sibling = NULL; if (nodeptr != NULL) { nodeName = (const char *)ixmlNode_getNodeName(nodeptr); nodeValue = ixmlNode_getNodeValue(nodeptr); - nodeNameSpaceURI = ixmlNode_getNamespaceURI(nodeptr); switch (ixmlNode_getNodeType(nodeptr)) { case eTEXT_NODE: @@ -152,11 +150,6 @@ static void ixmlPrintDomTreeRecursive( case eELEMENT_NODE: ixml_membuf_append_str(buf, "<"); ixml_membuf_append_str(buf, nodeName); - if (nodeNameSpaceURI != NULL) { - ixml_membuf_append_str(buf, " xmlns=\""); - ixml_membuf_append_str(buf, nodeNameSpaceURI); - ixml_membuf_append_str(buf, "\""); - } if (nodeptr->firstAttr != NULL) { ixml_membuf_append_str(buf, " "); ixmlPrintDomTreeRecursive(nodeptr->firstAttr, buf); @@ -282,7 +275,6 @@ static void ixmlDomTreetoString( { const char *nodeName = NULL; const char *nodeValue = NULL; - const char *nodeNameSpaceURI = NULL; IXML_Node *child = NULL; if (nodeptr == NULL || buf == NULL) { @@ -291,7 +283,6 @@ static void ixmlDomTreetoString( nodeName = (const char *)ixmlNode_getNodeName(nodeptr); nodeValue = ixmlNode_getNodeValue(nodeptr); - nodeNameSpaceURI = ixmlNode_getNamespaceURI(nodeptr); switch (ixmlNode_getNodeType(nodeptr)) { case eTEXT_NODE: @@ -311,11 +302,6 @@ static void ixmlDomTreetoString( case eELEMENT_NODE: ixml_membuf_append_str(buf, "<"); ixml_membuf_append_str(buf, nodeName); - if (nodeNameSpaceURI != NULL) { - ixml_membuf_append_str(buf, " xmlns=\""); - ixml_membuf_append_str(buf, nodeNameSpaceURI); - ixml_membuf_append_str(buf, "\""); - } if (nodeptr->firstAttr != NULL) { ixml_membuf_append_str(buf, " "); ixmlPrintDomTreeRecursive(nodeptr->firstAttr, buf);