Undoing the patch that fixed this problem. In fact, there was no

problem and the patch was wrong.


git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@442 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez 2008-06-13 19:15:25 +00:00
parent 087e675c94
commit 46bc551a48
2 changed files with 8 additions and 14 deletions

View File

@ -2,6 +2,14 @@
Version 1.8.0
*******************************************************************************
2008-06-13 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
* 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 <mroberto(at)users.sourceforge.net>
* Fixed a buffer overflow due to a bug in the calculation of the
CONTENT-TYPE header line size, the length was beeing calculated with

View File

@ -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);