add simplified version of XMLLoadFile() - preparation to move up a directory

svn path=/trunk/; revision=19706
This commit is contained in:
Royce Mitchell III 2005-11-27 23:01:38 +00:00
parent 6f9b454171
commit ee6b7f5296
2 changed files with 15 additions and 3 deletions

View file

@ -849,7 +849,8 @@ XMLLoadInclude (
} }
XMLElement* XMLElement*
XMLLoadFile ( const string& filename, XMLLoadFile (
const string& filename,
const Path& path, const Path& path,
XMLIncludes& includes ) XMLIncludes& includes )
{ {
@ -909,3 +910,11 @@ XMLLoadFile ( const string& filename,
} }
return head; return head;
} }
XMLElement*
XMLLoadFile ( const string& filename )
{
Path path;
XMLIncludes includes;
return XMLLoadFile ( filename, path, includes );
}

View file

@ -233,4 +233,7 @@ XMLLoadFile (
const Path& path, const Path& path,
XMLIncludes& includes ); XMLIncludes& includes );
XMLElement*
XMLLoadFile ( const std::string& filename );
#endif // XML_H #endif // XML_H