From: tomtt <to...@us...> - 2007-01-31 21:21:06
|
Update of /cvsroot/planeshift/planeshift/src/common/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30003 Modified Files: psxmlparser.cpp Log Message: Fixed obscure bug in XML parser that did not return contents of text child nodes. Index: psxmlparser.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/util/psxmlparser.cpp,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** psxmlparser.cpp 28 Nov 2006 18:39:22 -0000 1.49 --- psxmlparser.cpp 31 Jan 2007 21:20:59 -0000 1.50 *************** *** 366,369 **** --- 366,370 ---- xml += ">"; + nodes = node->GetNodes(); if (nodes->HasNext()) *************** *** 372,376 **** { csRef<iDocumentNode> child = nodes->Next(); ! xml += GetNodeXML(child); } } --- 373,384 ---- { csRef<iDocumentNode> child = nodes->Next(); ! if (child->GetType() == CS_NODE_TEXT) ! { ! xml += child->GetContentsValue(); ! } ! else ! { ! xml += GetNodeXML(child); ! } } } |