add GetXML overload for convenience

This commit is contained in:
Chris Danford
2005-06-16 03:08:45 +00:00
parent 11bc71c826
commit 63eebeb75e
3 changed files with 19 additions and 4 deletions
+17
View File
@@ -9,6 +9,7 @@
#include "DateTime.h"
#include "Foreach.h"
#include "arch/Dialog/Dialog.h"
#include "RageFileDriverMemory.h"
static const char chXMLTagOpen = '<';
@@ -613,6 +614,22 @@ bool XNode::GetXML( RageFileBasic &f, DISP_OPT *opt ) const
return true;
}
//========================================================
// Name : GetXML
// Desc : convert plain xml text from parsed xml node
// Param :
// Return : converted plain string
//--------------------------------------------------------
// Coder Date Desc
// bro 2002-10-29
//========================================================
CString XNode::GetXML() const
{
RageFileObjMem f;
GetXML( f, NULL );
return f.GetString();
}
//========================================================
// Name : GetValue
// Desc :