Rocket::Core::XMLParseTools Class Reference

#include <XMLParseTools.h>


Static Public Member Functions

static const char * FindTag (const char *tag, const char *string, bool closing_tag=false)
static bool ReadAttribute (const char *&string, String &name, String &value)
static ElementParseTemplate (Element *element, const String &template_name)

Detailed Description

Tools for aiding in parsing XML documents.

Author:
Lloyd Weehuizen

Member Function Documentation

const char * Rocket::Core::XMLParseTools::FindTag ( const char *  tag,
const char *  string,
bool  closing_tag = false 
) [static]

Searchs a string for the specified tag

Parameters:
tag Tag to find, *must* be in lower case
string String to search
closing_tag Is it the closing tag we're looking for?

bool Rocket::Core::XMLParseTools::ReadAttribute ( const char *&  string,
String name,
String value 
) [static]

Reads the next attribute from the string, advancing the pointer

Parameters:
[in,out] string String to read the attribute from, pointer will be advanced passed the read
[out] name Name of the attribute read
[out] value Value of the attribute read

Element * Rocket::Core::XMLParseTools::ParseTemplate ( Element element,
const String template_name 
) [static]

Applies the named template to the specified element

Parameters:
element Element to apply the template to
template_name Name of the template to apply, in TEMPLATE:ELEMENT_ID form
Returns:
Element to continue the parse from


The documentation for this class was generated from the following files: