move XML loading and saving into XmlFileUtil

update
This commit is contained in:
Glenn Maynard
2006-10-02 05:56:11 +00:00
parent 7696cef6b0
commit 90c5d6fe99
@@ -21,6 +21,7 @@
#include "ProductInfo.h" #include "ProductInfo.h"
#include "RageUtil.h" #include "RageUtil.h"
#include "XmlFile.h" #include "XmlFile.h"
#include "XmlFileUtil.h"
#include "LocalizedString.h" #include "LocalizedString.h"
#include "RageFileDriverDeflate.h" #include "RageFileDriverDeflate.h"
@@ -790,11 +791,11 @@ BOOL CrashDialog::HandleMessage( UINT msg, WPARAM wParam, LPARAM lParam )
XNode xml; XNode xml;
if( sError.empty() ) if( sError.empty() )
{ {
PARSEINFO pi; RString sError;
xml.Load( sResult, &pi ); XmlFileUtil::Load( &xml, sResult, sError );
if( pi.error_occur ) if( !sError.empty() )
{ {
sError = ssprintf( "Error parsing response: %s", pi.error_string.c_str() ); sError = ssprintf( "Error parsing response: %s", sError.c_str() );
xml.Clear(); xml.Clear();
} }
} }