sprintf( buf, "%f %f %f", v[0], v[1], v[2] );
ret = xmlNewNode( NULL, "point" );
- xmlNodeSetContent( ret, buf );
+ xmlNodeAddContent( ret, buf );
return ret;
}
// now build a proper "select" XML node
sprintf( buf, "Entity %i, Brush %i: %s", entitynum, brushnum, msg );
node = xmlNewNode( NULL, "select" );
- xmlNodeSetContent( node, buf );
+ xmlNodeAddContent( node, buf );
level[0] = (int)'0' + ( bError ? SYS_ERR : SYS_WRN ) ;
level[1] = 0;
xmlSetProp( node, "level", (char *)&level );
// a 'select' information
sprintf( buf, "%i %i", entitynum, brushnum );
select = xmlNewNode( NULL, "brush" );
- xmlNodeSetContent( select, buf );
+ xmlNodeAddContent( select, buf );
xmlAddChild( node, select );
xml_SendNode( node );
char level[2];
node = xmlNewNode( NULL, "pointmsg" );
- xmlNodeSetContent( node, msg );
+ xmlNodeAddContent( node, msg );
level[0] = (int)'0' + SYS_ERR;
level[1] = 0;
xmlSetProp( node, "level", (char *)&level );
// a 'point' node
sprintf( buf, "%g %g %g", pt[0], pt[1], pt[2] );
point = xmlNewNode( NULL, "point" );
- xmlNodeSetContent( point, buf );
+ xmlNodeAddContent( point, buf );
xmlAddChild( node, point );
xml_SendNode( node );
int i;
node = xmlNewNode( NULL, "windingmsg" );
- xmlNodeSetContent( node, msg );
+ xmlNodeAddContent( node, msg );
level[0] = (int)'0' + SYS_ERR;
level[1] = 0;
xmlSetProp( node, "level", (char *)&level );
}
winding = xmlNewNode( NULL, "winding" );
- xmlNodeSetContent( winding, buf );
+ xmlNodeAddContent( winding, buf );
xmlAddChild( node, winding );
xml_SendNode( node );
bGotXML = true;
}
node = xmlNewNode( NULL, "message" );
- xmlNodeSetContent( node, buf );
+ xmlNodeAddContent( node, buf );
level[0] = (int)'0' + flag;
level[1] = 0;
xmlSetProp( node, "level", (char *)&level );
Sys_FPrintf( SYS_NOXML, "**********************\n" );
polyline = LeakFile( tree );
leaknode = xmlNewNode( NULL, "message" );
- xmlNodeSetContent( leaknode, "MAP LEAKED\n" );
+ xmlNodeAddContent( leaknode, "MAP LEAKED\n" );
xmlAddChild( leaknode, polyline );
level[0] = (int) '0' + SYS_ERR;
level[1] = 0;
sprintf( buf, "%f %f %f", v[0], v[1], v[2] );
ret = xmlNewNode( NULL, "point" );
- xmlNodeSetContent( ret, buf );
+ xmlNodeAddContent( ret, buf );
return ret;
}
// now build a proper "select" XML node
sprintf( buf, "Entity %i, Brush %i: %s", entitynum, brushnum, msg );
node = xmlNewNode( NULL, "select" );
- xmlNodeSetContent( node, buf );
+ xmlNodeAddContent( node, buf );
level[0] = (int)'0' + ( bError ? SYS_ERR : SYS_WRN ) ;
level[1] = 0;
xmlSetProp( node, "level", (char *)&level );
// a 'select' information
sprintf( buf, "%i %i", entitynum, brushnum );
select = xmlNewNode( NULL, "brush" );
- xmlNodeSetContent( select, buf );
+ xmlNodeAddContent( select, buf );
xmlAddChild( node, select );
xml_SendNode( node );
char level[2];
node = xmlNewNode( NULL, "pointmsg" );
- xmlNodeSetContent( node, msg );
+ xmlNodeAddContent( node, msg );
level[0] = (int)'0' + SYS_ERR;
level[1] = 0;
xmlSetProp( node, "level", (char *)&level );
// a 'point' node
sprintf( buf, "%g %g %g", pt[0], pt[1], pt[2] );
point = xmlNewNode( NULL, "point" );
- xmlNodeSetContent( point, buf );
+ xmlNodeAddContent( point, buf );
xmlAddChild( node, point );
xml_SendNode( node );
int i;
node = xmlNewNode( NULL, "windingmsg" );
- xmlNodeSetContent( node, msg );
+ xmlNodeAddContent( node, msg );
level[0] = (int)'0' + SYS_ERR;
level[1] = 0;
xmlSetProp( node, "level", (char *)&level );
}
winding = xmlNewNode( NULL, "winding" );
- xmlNodeSetContent( winding, buf );
+ xmlNodeAddContent( winding, buf );
xmlAddChild( node, winding );
xml_SendNode( node );
bGotXML = true;
}
node = xmlNewNode( NULL, "message" );
- xmlNodeSetContent( node, buf );
+ xmlNodeAddContent( node, buf );
level[0] = (int)'0' + flag;
level[1] = 0;
xmlSetProp( node, "level", (char *)&level );
Sys_FPrintf( SYS_NOXML, "**********************\n" );
polyline = LeakFile( tree, lineFilePath );
leaknode = xmlNewNode( NULL, (xmlChar*)"message" );
- xmlNodeSetContent( leaknode, (xmlChar*)"MAP LEAKED\n" );
+ xmlNodeAddContent( leaknode, (xmlChar*)"MAP LEAKED\n" );
xmlAddChild( leaknode, polyline );
level[0] = (int) '0' + SYS_ERR;
level[1] = 0;