SF Bug Tracker [ 1590466 ] Invalid xml output
Submitted By: Erik Johansson - erijo git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@99 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
parent
2bc6a1f8dd
commit
353a876a54
@ -103,14 +103,16 @@ ixmlPrintDomTreeRecursive( IN IXML_Node * nodeptr,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case eCDATA_SECTION_NODE:
|
case eCDATA_SECTION_NODE:
|
||||||
|
ixml_membuf_append_str( buf, "<![CDATA[" );
|
||||||
ixml_membuf_append_str( buf, nodeValue );
|
ixml_membuf_append_str( buf, nodeValue );
|
||||||
|
ixml_membuf_append_str( buf, "]]>" );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ePROCESSING_INSTRUCTION_NODE:
|
case ePROCESSING_INSTRUCTION_NODE:
|
||||||
ixml_membuf_append_str( buf, "<?" );
|
ixml_membuf_append_str( buf, "<?" );
|
||||||
ixml_membuf_append_str( buf, nodeName );
|
ixml_membuf_append_str( buf, nodeName );
|
||||||
ixml_membuf_append_str( buf, " " );
|
ixml_membuf_append_str( buf, " " );
|
||||||
ixml_membuf_append_str( buf, nodeValue );
|
copy_with_escape( buf, nodeValue );
|
||||||
ixml_membuf_append_str( buf, "?>\n" );
|
ixml_membuf_append_str( buf, "?>\n" );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -122,10 +124,9 @@ ixmlPrintDomTreeRecursive( IN IXML_Node * nodeptr,
|
|||||||
case eATTRIBUTE_NODE:
|
case eATTRIBUTE_NODE:
|
||||||
ixml_membuf_append_str( buf, nodeName );
|
ixml_membuf_append_str( buf, nodeName );
|
||||||
ixml_membuf_append_str( buf, "=\"" );
|
ixml_membuf_append_str( buf, "=\"" );
|
||||||
if( nodeValue != NULL ) {
|
copy_with_escape( buf, nodeValue );
|
||||||
ixml_membuf_append_str( buf, nodeValue );
|
|
||||||
}
|
|
||||||
ixml_membuf_append_str( buf, "\"" );
|
ixml_membuf_append_str( buf, "\"" );
|
||||||
|
|
||||||
if( nodeptr->nextSibling != NULL ) {
|
if( nodeptr->nextSibling != NULL ) {
|
||||||
ixml_membuf_append_str( buf, " " );
|
ixml_membuf_append_str( buf, " " );
|
||||||
ixmlPrintDomTreeRecursive( nodeptr->nextSibling, buf );
|
ixmlPrintDomTreeRecursive( nodeptr->nextSibling, buf );
|
||||||
@ -210,7 +211,7 @@ ixmlPrintDomTree( IN IXML_Node * nodeptr,
|
|||||||
case eATTRIBUTE_NODE:
|
case eATTRIBUTE_NODE:
|
||||||
ixml_membuf_append_str( buf, nodeName );
|
ixml_membuf_append_str( buf, nodeName );
|
||||||
ixml_membuf_append_str( buf, "=\"" );
|
ixml_membuf_append_str( buf, "=\"" );
|
||||||
ixml_membuf_append_str( buf, nodeValue );
|
copy_with_escape( buf, nodeValue );
|
||||||
ixml_membuf_append_str( buf, "\"" );
|
ixml_membuf_append_str( buf, "\"" );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -281,7 +282,7 @@ ixmlDomTreetoString( IN IXML_Node * nodeptr,
|
|||||||
case eATTRIBUTE_NODE:
|
case eATTRIBUTE_NODE:
|
||||||
ixml_membuf_append_str( buf, nodeName );
|
ixml_membuf_append_str( buf, nodeName );
|
||||||
ixml_membuf_append_str( buf, "=\"" );
|
ixml_membuf_append_str( buf, "=\"" );
|
||||||
ixml_membuf_append_str( buf, nodeValue );
|
copy_with_escape( buf, nodeValue );
|
||||||
ixml_membuf_append_str( buf, "\"" );
|
ixml_membuf_append_str( buf, "\"" );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user