|
xoreos
0.0.5
|
Class to parse a ReadStream into a simple XML tree. More...
#include <xml.h>


Public Member Functions | |
| XMLParser (ReadStream &stream, bool makeLower=false, const UString &fileName="stream.xml") | |
| Parse an XML file out of a stream. More... | |
| ~XMLParser () | |
| const XMLNode & | getRoot () const |
| Return the XML root node. More... | |
Private Attributes | |
| ScopedPtr< XMLNode > | _rootNode |
Class to parse a ReadStream into a simple XML tree.
| Common::XMLParser::XMLParser | ( | ReadStream & | stream, |
| bool | makeLower = false, |
||
| const UString & | fileName = "stream.xml" |
||
| ) |
Parse an XML file out of a stream.
| stream | The stream to read the XML from. |
| makeLower | Should all tags be converted to lowercase, to ease case-insensitive comparison? |
| fileName | The file name to tell libxml2. Only used for error reporting. |
Definition at line 75 of file xml.cpp.
References _rootNode, Common::StackException::add(), Common::UString::c_str(), Common::closeStream(), Common::UString::empty(), Common::errorFuncUString(), and Common::readStream().

| const XMLNode & Common::XMLParser::getRoot | ( | ) | const |
Return the XML root node.
Definition at line 108 of file xml.cpp.
References _rootNode.
Referenced by Aurora::TextureAtlasFile::load(), Engines::DragonAge::Campaign::readManifest(), Engines::DragonAge2::Campaign::readManifest(), and Graphics::Aurora::ModelNode_DragonAge::readMAOXML().

Definition at line 66 of file xml.h.
Referenced by getRoot(), and XMLParser().
1.8.14