Public Types | |
enum | NodeType { DOCUMENT, ELEMENT, COMMENT, UNKNOWN, TEXT, DECLARATION, TYPECOUNT } |
enum | { TIXML_NO_ERROR = 0, TIXML_ERROR, TIXML_ERROR_OPENING_FILE, TIXML_ERROR_OUT_OF_MEMORY, TIXML_ERROR_PARSING_ELEMENT, TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME, TIXML_ERROR_READING_ELEMENT_VALUE, TIXML_ERROR_READING_ATTRIBUTES, TIXML_ERROR_PARSING_EMPTY, TIXML_ERROR_READING_END_TAG, TIXML_ERROR_PARSING_UNKNOWN, TIXML_ERROR_PARSING_COMMENT, TIXML_ERROR_PARSING_DECLARATION, TIXML_ERROR_DOCUMENT_EMPTY, TIXML_ERROR_EMBEDDED_NULL, TIXML_ERROR_STRING_COUNT } |
Public Member Functions | |
TinyXMLDocument (XMLHandler &handler, const String &filename, const String &schemaName, const String &resourceGroup) | |
~TinyXMLDocument () | |
bool | LoadFile (TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING) |
bool | LoadFile (const char *filename, TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING) |
Load a file using the given filename. Returns true if successful. | |
bool | SaveFile () const |
Save a file using the current document value. Returns true if successful. | |
bool | SaveFile (const char *filename) const |
Save a file using the given filename. Returns true if successful. | |
virtual const char * | Parse (const char *p, TiXmlParsingData *data=0, TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING) |
const TiXmlElement * | RootElement () const |
TiXmlElement * | RootElement () |
bool | Error () const |
const char * | ErrorDesc () const |
Contains a textual (english) description of the error if one occurs. | |
const int | ErrorId () const |
int | ErrorRow () |
int | ErrorCol () |
The column where the error occured. See ErrorRow(). | |
void | SetTabSize (int _tabsize) |
int | TabSize () const |
void | ClearError () |
void | Print () const |
virtual void | Print (FILE *cfile, int depth=0) const |
Print this Document to a FILE stream. | |
void | SetError (int err, const char *errorLocation, TiXmlParsingData *prevData, TiXmlEncoding encoding) |
const char * | Value () const |
void | SetValue (const char *_value) |
void | Clear () |
Delete all the children of this node. Does not affect 'this'. | |
TiXmlNode * | Parent () |
One step up the DOM. | |
const TiXmlNode * | Parent () const |
const TiXmlNode * | FirstChild () const |
The first child of this node. Will be null if there are no children. | |
TiXmlNode * | FirstChild () |
const TiXmlNode * | FirstChild (const char *value) const |
The first child of this node with the matching 'value'. Will be null if none found. | |
TiXmlNode * | FirstChild (const char *value) |
The first child of this node with the matching 'value'. Will be null if none found. | |
const TiXmlNode * | LastChild () const |
TiXmlNode * | LastChild () |
The last child of this node. Will be null if there are no children. | |
const TiXmlNode * | LastChild (const char *value) const |
TiXmlNode * | LastChild (const char *value) |
The last child of this node matching 'value'. Will be null if there are no children. | |
const TiXmlNode * | IterateChildren (TiXmlNode *previous) const |
TiXmlNode * | IterateChildren (TiXmlNode *previous) |
const TiXmlNode * | IterateChildren (const char *value, TiXmlNode *previous) const |
This flavor of IterateChildren searches for children with a particular 'value'. | |
TiXmlNode * | IterateChildren (const char *value, TiXmlNode *previous) |
TiXmlNode * | InsertEndChild (const TiXmlNode &addThis) |
TiXmlNode * | LinkEndChild (TiXmlNode *addThis) |
TiXmlNode * | InsertBeforeChild (TiXmlNode *beforeThis, const TiXmlNode &addThis) |
TiXmlNode * | InsertAfterChild (TiXmlNode *afterThis, const TiXmlNode &addThis) |
TiXmlNode * | ReplaceChild (TiXmlNode *replaceThis, const TiXmlNode &withThis) |
bool | RemoveChild (TiXmlNode *removeThis) |
Delete a child of this node. | |
const TiXmlNode * | PreviousSibling () const |
Navigate to a sibling node. | |
TiXmlNode * | PreviousSibling () |
const TiXmlNode * | PreviousSibling (const char *) const |
Navigate to a sibling node. | |
TiXmlNode * | PreviousSibling (const char *) |
const TiXmlNode * | NextSibling () const |
Navigate to a sibling node. | |
TiXmlNode * | NextSibling () |
const TiXmlNode * | NextSibling (const char *) const |
Navigate to a sibling node with the given 'value'. | |
TiXmlNode * | NextSibling (const char *) |
const TiXmlElement * | NextSiblingElement () const |
TiXmlElement * | NextSiblingElement () |
const TiXmlElement * | NextSiblingElement (const char *) const |
TiXmlElement * | NextSiblingElement (const char *) |
const TiXmlElement * | FirstChildElement () const |
Convenience function to get through elements. | |
TiXmlElement * | FirstChildElement () |
const TiXmlElement * | FirstChildElement (const char *value) const |
Convenience function to get through elements. | |
TiXmlElement * | FirstChildElement (const char *value) |
virtual int | Type () const |
const TiXmlDocument * | GetDocument () const |
TiXmlDocument * | GetDocument () |
bool | NoChildren () const |
Returns true if this node has no children. | |
const TiXmlDocument * | ToDocument () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlDocument * | ToDocument () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlElement * | ToElement () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlElement * | ToElement () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlComment * | ToComment () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlComment * | ToComment () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlUnknown * | ToUnknown () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlUnknown * | ToUnknown () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlText * | ToText () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlText * | ToText () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlDeclaration * | ToDeclaration () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlDeclaration * | ToDeclaration () |
Cast to a more defined type. Will return null not of the requested type. | |
int | Row () const |
int | Column () const |
See Row(). | |
void | SetUserData (void *user) |
void * | GetUserData () |
Static Public Member Functions | |
static void | SetCondenseWhiteSpace (bool condense) |
static bool | IsWhiteSpaceCondensed () |
Return the current white space setting. | |
Static Public Attributes | |
static const int | utf8ByteTable [256] |
Protected Member Functions | |
void | processElement (const TiXmlElement *element) |
virtual void | StreamOut (TIXML_OSTREAM *out) const |
virtual TiXmlNode * | Clone () const |
void | CopyTo (TiXmlNode *target) const |
TiXmlNode * | Identify (const char *start, TiXmlEncoding encoding) |
const TIXML_STRING & | SValue () const |
Static Protected Member Functions | |
static const char * | SkipWhiteSpace (const char *, TiXmlEncoding encoding) |
static bool | IsWhiteSpace (char c) |
static const char * | ReadName (const char *p, TIXML_STRING *name, TiXmlEncoding encoding) |
static const char * | ReadText (const char *in, TIXML_STRING *text, bool ignoreWhiteSpace, const char *endTag, bool ignoreCase, TiXmlEncoding encoding) |
static const char * | GetEntity (const char *in, char *value, int *length, TiXmlEncoding encoding) |
static const char * | GetChar (const char *p, char *_value, int *length, TiXmlEncoding encoding) |
static void | PutString (const TIXML_STRING &str, TIXML_OSTREAM *out) |
static void | PutString (const TIXML_STRING &str, TIXML_STRING *out) |
static bool | StringEqual (const char *p, const char *endTag, bool ignoreCase, TiXmlEncoding encoding) |
static int | IsAlpha (unsigned char anyByte, TiXmlEncoding encoding) |
static int | IsAlphaNum (unsigned char anyByte, TiXmlEncoding encoding) |
static int | ToLower (int v, TiXmlEncoding encoding) |
static void | ConvertUTF32ToUTF8 (unsigned long input, char *output, int *length) |
Protected Attributes | |
TiXmlNode * | parent |
NodeType | type |
TiXmlNode * | firstChild |
TiXmlNode * | lastChild |
TIXML_STRING | value |
TiXmlNode * | prev |
TiXmlNode * | next |
TiXmlCursor | location |
void * | userData |
Field containing a generic user pointer. | |
Static Protected Attributes | |
static const char * | errorString [TIXML_ERROR_STRING_COUNT] |
Friends | |
TIXML_OSTREAM & | operator<< (TIXML_OSTREAM &out, const TiXmlNode &base) |
Definition at line 35 of file CEGUITinyXMLParser.cpp.
|
|
The types of XML nodes supported by TinyXml. (All the unsupported types are picked up by UNKNOWN.) |
|
Definition at line 48 of file CEGUITinyXMLParser.cpp. References CEGUI::DataContainer< T >::getDataPtr(), CEGUI::System::getResourceProvider(), CEGUI::System::getSingleton(), CEGUI::ResourceProvider::loadRawDataContainer(), TiXmlDocument::Parse(), processElement(), TiXmlDocument::RootElement(), and CEGUI::ResourceProvider::unloadRawDataContainer(). |
|
Definition at line 39 of file CEGUITinyXMLParser.cpp. |
|
Delete all the children of this node. Does not affect 'this'.
Definition at line 170 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::lastChild, and TiXmlNode::next. Referenced by TiXmlElement::ClearThis(), TiXmlDocument::LoadFile(), TiXmlDeclaration::operator=(), TiXmlComment::operator=(), and TiXmlDocument::operator=(). |
|
If you have handled the error, it can be reset with this call. The error state is automatically cleared if you Parse a new XML block. Definition at line 1250 of file tinyxml.h. References TiXmlCursor::col, and TiXmlCursor::row. Referenced by TiXmlDocument::Parse(), and TiXmlDocument::TiXmlDocument(). |
|
Create an exact duplicate of this node and return it. The memory must be deleted by the caller. Implements TiXmlNode. Definition at line 1015 of file tinyxml.cpp. References TiXmlDocument::TiXmlDocument(). |
|
See Row().
Definition at line 180 of file tinyxml.h. References TiXmlCursor::col, and TiXmlBase::location. |
|
Definition at line 78 of file tinyxmlparser.cpp. Referenced by TiXmlBase::GetEntity(). |
|
Definition at line 163 of file tinyxml.cpp. References TiXmlNode::SetValue(), TiXmlBase::userData, and TiXmlNode::value. Referenced by TiXmlUnknown::CopyTo(), TiXmlDeclaration::CopyTo(), TiXmlText::CopyTo(), TiXmlComment::CopyTo(), and TiXmlElement::CopyTo(). |
|
If an error occurs, Error will be set to true. Also,
Definition at line 1203 of file tinyxml.h. Referenced by TiXmlDocument::LoadFile(). |
|
The column where the error occured. See ErrorRow().
Definition at line 1221 of file tinyxml.h. References TiXmlCursor::col. |
|
Contains a textual (english) description of the error if one occurs.
|
|
Generally, you probably want the error string ( ErrorDesc() ). But if you prefer the ErrorId, this function will fetch it. |
|
Returns the location (if known) of the error. The first column is column 1, and the first row is row 1. A value of 0 means the row and column wasn't applicable (memory errors, for example, have no row/column) or the parser lost the error. (An error in the error reporting, in that case.)
Definition at line 1220 of file tinyxml.h. References TiXmlCursor::row. |
|
The first child of this node with the matching 'value'. Will be null if none found.
Definition at line 328 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::next, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
The first child of this node with the matching 'value'. Will be null if none found.
Definition at line 316 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::next, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Definition at line 455 of file tinyxml.h. References TiXmlNode::firstChild. |
|
The first child of this node. Will be null if there are no children.
Definition at line 454 of file tinyxml.h. References TiXmlNode::firstChild. Referenced by TiXmlHandle::Child(), TiXmlHandle::FirstChild(), TiXmlNode::FirstChildElement(), TiXmlNode::IterateChildren(), TiXmlDocument::Print(), and TiXmlDocument::StreamOut(). |
|
Definition at line 510 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Convenience function to get through elements.
Definition at line 496 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Definition at line 482 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Convenience function to get through elements.
Definition at line 468 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). Referenced by TiXmlHandle::ChildElement(), TiXmlHandle::FirstChildElement(), processElement(), and TiXmlDocument::RootElement(). |
|
Definition at line 260 of file tinyxml.h. References TiXmlBase::GetEntity(), TIXML_ENCODING_UTF8, and TiXmlBase::utf8ByteTable. Referenced by TiXmlBase::ReadText(). |
|
Definition at line 593 of file tinyxml.cpp. References TiXmlNode::parent, and TiXmlNode::ToDocument(). |
|
Return a pointer to the Document this node lives in. Returns null if not in a document. Definition at line 581 of file tinyxml.cpp. References TiXmlNode::parent, and TiXmlNode::ToDocument(). Referenced by TiXmlNode::Identify(), TiXmlDeclaration::Parse(), TiXmlComment::Parse(), TiXmlUnknown::Parse(), TiXmlElement::Parse(), TiXmlElement::ReadValue(), and TiXmlElement::SetAttribute(). |
|
Definition at line 413 of file tinyxmlparser.cpp. References TiXmlBase::ConvertUTF32ToUTF8(), TIXML_ENCODING_UTF8, and TIXML_STRING. Referenced by TiXmlBase::GetChar(). |
|
Definition at line 183 of file tinyxml.h. References TiXmlBase::userData. |
|
Definition at line 790 of file tinyxmlparser.cpp. References TiXmlNode::GetDocument(), TiXmlBase::IsAlpha(), TiXmlNode::parent, TiXmlDocument::SetError(), TiXmlBase::SkipWhiteSpace(), TiXmlBase::StringEqual(), TIXML_ENCODING_UNKNOWN, TiXmlBase::TIXML_ERROR_OUT_OF_MEMORY, TIXML_LOG, and TiXmlNode::TiXmlElement. Referenced by TiXmlDocument::Parse(), and TiXmlElement::ReadValue(). |
|
Add a new node related to this. Adds a child after the specified child. Returns a pointer to the new object or NULL if an error occured. Definition at line 240 of file tinyxml.cpp. References TiXmlNode::Clone(), TiXmlNode::lastChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. |
|
Add a new node related to this. Adds a child before the specified child. Returns a pointer to the new object or NULL if an error occured. Definition at line 214 of file tinyxml.cpp. References TiXmlNode::Clone(), TiXmlNode::firstChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. |
|
Add a new node related to this. Adds a child past the LastChild. Returns a pointer to the new object or NULL if an error occured. Definition at line 204 of file tinyxml.cpp. References TiXmlNode::Clone(), and TiXmlNode::LinkEndChild(). |
|
Definition at line 119 of file tinyxmlparser.cpp. Referenced by TiXmlNode::Identify(), and TiXmlBase::ReadName(). |
|
Definition at line 140 of file tinyxmlparser.cpp. Referenced by TiXmlBase::ReadName(). |
|
Definition at line 227 of file tinyxml.h. Referenced by TiXmlText::Blank(), TiXmlDeclaration::Parse(), TiXmlAttribute::Parse(), TiXmlBase::ReadText(), and TiXmlBase::SkipWhiteSpace(). |
|
Return the current white space setting.
Definition at line 159 of file tinyxml.h. Referenced by TiXmlElement::ReadValue(). |
|
Definition at line 401 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent. |
|
This flavor of IterateChildren searches for children with a particular 'value'.
Definition at line 388 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent. |
|
Definition at line 375 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent. |
|
An alternate way to walk the children of a node. One way to iterate over nodes is: for( child = parent->FirstChild(); child; child = child->NextSibling() ) IterateChildren does the same thing with the syntax: child = 0; while( child = parent->IterateChildren( child ) ) IterateChildren takes the previous child as input and finds the next one. If the previous child is null, it returns the first. IterateChildren will return null when done. Definition at line 362 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent. |
|
The last child of this node matching 'value'. Will be null if there are no children.
Definition at line 351 of file tinyxml.cpp. References TiXmlNode::lastChild, TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Definition at line 340 of file tinyxml.cpp. References TiXmlNode::lastChild, TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
The last child of this node. Will be null if there are no children.
Definition at line 460 of file tinyxml.h. References TiXmlNode::lastChild. |
|
Definition at line 459 of file tinyxml.h. References TiXmlNode::lastChild. |
|
Add a new node related to this. Adds a child past the LastChild. NOTE: the node to be added is passed by pointer, and will be henceforth owned (and deleted) by tinyXml. This method is efficient and avoids an extra copy, but should be used with care as it uses a different memory model than the other insert functions.
Definition at line 187 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::lastChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. Referenced by TiXmlElement::CopyTo(), TiXmlNode::InsertEndChild(), TiXmlDocument::Parse(), and TiXmlElement::ReadValue(). |
|
Load a file using the given filename. Returns true if successful.
Definition at line 928 of file tinyxml.cpp. References TiXmlCursor::Clear(), TiXmlNode::Clear(), TiXmlDocument::Error(), TiXmlBase::location, TiXmlDocument::Parse(), TiXmlDocument::SetError(), TIXML_ENCODING_UNKNOWN, TiXmlBase::TIXML_ERROR_OPENING_FILE, TIXML_STRING, and TiXmlNode::value. |
|
Load a file using the current document value. Returns true if successful. Will delete any existing document data before loading. Definition at line 905 of file tinyxml.cpp. References TiXmlNode::value. |
|
Definition at line 425 of file tinyxml.cpp. References TiXmlNode::next, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Navigate to a sibling node with the given 'value'.
Definition at line 414 of file tinyxml.cpp. References TiXmlNode::next, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Definition at line 551 of file tinyxml.h. References TiXmlNode::next. |
|
Navigate to a sibling node.
Definition at line 550 of file tinyxml.h. References TiXmlNode::next. Referenced by TiXmlHandle::Child(), TiXmlElement::CopyTo(), TiXmlNode::FirstChildElement(), TiXmlNode::IterateChildren(), TiXmlNode::NextSiblingElement(), TiXmlDocument::Print(), TiXmlElement::Print(), TiXmlDocument::StreamOut(), and TiXmlElement::StreamOut(). |
|
Definition at line 566 of file tinyxml.cpp. References TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Element nodes. Returns 0 if there is not another element. Definition at line 552 of file tinyxml.cpp. References TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Definition at line 538 of file tinyxml.cpp. References TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Element nodes. Returns 0 if there is not another element. Definition at line 524 of file tinyxml.cpp. References TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). Referenced by TiXmlHandle::ChildElement(). |
|
Returns true if this node has no children.
Definition at line 602 of file tinyxml.h. References TiXmlNode::firstChild. |
|
Definition at line 452 of file tinyxml.h. References TiXmlNode::parent. |
|
One step up the DOM.
Definition at line 451 of file tinyxml.h. References TiXmlNode::parent. |
|
Parse the given null terminated block of xml data. Passing in an encoding to this method (either TIXML_ENCODING_LEGACY or TIXML_ENCODING_UTF8 will force TinyXml to use that encoding, regardless of what TinyXml might otherwise try to detect. Implements TiXmlBase. Definition at line 677 of file tinyxmlparser.cpp. References TiXmlCursor::Clear(), TiXmlDocument::ClearError(), TiXmlCursor::col, TiXmlParsingData::Cursor(), TiXmlParsingData::cursor, TiXmlDeclaration::Encoding(), TiXmlNode::firstChild, TiXmlNode::Identify(), TiXmlNode::LinkEndChild(), TiXmlBase::location, TiXmlBase::Parse(), TiXmlCursor::row, TiXmlDocument::SetError(), TiXmlBase::SkipWhiteSpace(), TiXmlBase::StringEqual(), TiXmlDocument::TabSize(), TIXML_ENCODING_LEGACY, TIXML_ENCODING_UNKNOWN, TIXML_ENCODING_UTF8, TiXmlBase::TIXML_ERROR_DOCUMENT_EMPTY, TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, and TiXmlNode::ToDeclaration(). Referenced by TiXmlDocument::LoadFile(), and TinyXMLDocument(). |
|
Definition at line 447 of file tinyxml.cpp. References TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Navigate to a sibling node.
Definition at line 436 of file tinyxml.cpp. References TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Definition at line 536 of file tinyxml.h. References TiXmlNode::prev. |
|
Navigate to a sibling node.
Definition at line 535 of file tinyxml.h. References TiXmlNode::prev. |
|
Print this Document to a FILE stream.
Implements TiXmlBase. Definition at line 1026 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlBase::Print(). |
|
Dump the document to standard out. Definition at line 1258 of file tinyxml.h. Referenced by TiXmlDocument::SaveFile(). |
|
Definition at line 71 of file CEGUITinyXMLParser.cpp. References CEGUI::XMLAttributes::add(), CEGUI::XMLHandler::elementEnd(), CEGUI::XMLHandler::elementStart(), TiXmlElement::FirstAttribute(), TiXmlNode::FirstChildElement(), TiXmlAttribute::Name(), TiXmlAttribute::Next(), TiXmlNode::Value(), and TiXmlAttribute::Value(). Referenced by TinyXMLDocument(). |
|
Definition at line 42 of file tinyxml.cpp. |
|
Definition at line 35 of file tinyxml.cpp. References TIXML_STRING. Referenced by TiXmlText::Print(), TiXmlAttribute::Print(), TiXmlDeclaration::StreamOut(), TiXmlText::StreamOut(), and TiXmlAttribute::StreamOut(). |
|
Definition at line 383 of file tinyxmlparser.cpp. References TiXmlBase::IsAlpha(), and TiXmlBase::IsAlphaNum(). Referenced by TiXmlAttribute::Parse(), and TiXmlElement::Parse(). |
|
Definition at line 549 of file tinyxmlparser.cpp. References TiXmlBase::GetChar(), TiXmlBase::IsWhiteSpace(), TiXmlBase::SkipWhiteSpace(), and TiXmlBase::StringEqual(). Referenced by TiXmlText::Parse(), TiXmlAttribute::Parse(), and TiXmlComment::Parse(). |
|
Delete a child of this node.
Definition at line 294 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::lastChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. |
|
Replace a child of this node. Returns a pointer to the new object or NULL if an error occured. Definition at line 266 of file tinyxml.cpp. References TiXmlNode::Clone(), TiXmlNode::firstChild, TiXmlNode::lastChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. |
|
Definition at line 1196 of file tinyxml.h. References TiXmlNode::FirstChildElement(). |
|
Get the root element -- the only top level element -- of the document. In well formed XML, there should only be one. TinyXml is tolerant of multiple elements at the document level. Definition at line 1195 of file tinyxml.h. References TiXmlNode::FirstChildElement(). Referenced by TinyXMLDocument(). |
|
Return the position, in the original source file, of this node or attribute. The row and column are 1-based. (That is the first row and first column is 1,1). If the returns values are 0 or less, then the parser does not have a row and column value. Generally, the row and column value will be set when the TiXmlDocument::Load(), TiXmlDocument::LoadFile(), or any TiXmlNode::Parse() is called. It will NOT be set when the DOM was created from operator>>. The values reflect the initial load. Once the DOM is modified programmatically (by adding or changing nodes and attributes) the new values will NOT update to reflect changes in the document. There is a minor performance cost to computing the row and column. Computation can be disabled if TiXmlDocument::SetTabSize() is called with 0 as the value.
Definition at line 179 of file tinyxml.h. References TiXmlBase::location, and TiXmlCursor::row. |
|
Save a file using the given filename. Returns true if successful.
Definition at line 986 of file tinyxml.cpp. References TiXmlDocument::Print(). |
|
Save a file using the current document value. Returns true if successful.
Definition at line 917 of file tinyxml.cpp. References TiXmlNode::value. |
|
The world does not agree on whether white space should be kept or not. In order to make everyone happy, these global, static functions are provided to set whether or not TinyXml will condense all white space into a single space or not. The default is to condense. Note changing this values is not thread safe. |
|
Definition at line 769 of file tinyxmlparser.cpp. References TiXmlCursor::Clear(), TiXmlParsingData::Cursor(), TiXmlBase::errorString, TiXmlParsingData::Stamp(), and TiXmlBase::TIXML_ERROR_STRING_COUNT. Referenced by TiXmlNode::Identify(), TiXmlDocument::LoadFile(), TiXmlAttribute::Parse(), TiXmlComment::Parse(), TiXmlUnknown::Parse(), TiXmlElement::Parse(), TiXmlDocument::Parse(), and TiXmlElement::SetAttribute(). |
|
By calling this method, with a tab size greater than 0, the row and column of each node and attribute is stored when the file is loaded. Very useful for tracking the DOM back in to the source file. The tab size is required for calculating the location of nodes. If not set, the default of 4 is used. The tabsize is set per document. Setting the tabsize to 0 disables row/column tracking. Note that row and column tracking is not supported when using operator>>. The tab size needs to be enabled before the parse or load. Correct usage: TiXmlDocument doc; doc.SetTabSize( 8 ); doc.Load( "myfile.xml" );
|
|
Definition at line 182 of file tinyxml.h. References TiXmlBase::userData. |
|
Changes the value of the node. Defined as: Document: filename of the xml file Element: name of the element Comment: the comment text Unknown: the tag contents Text: the text string Definition at line 436 of file tinyxml.h. References TiXmlNode::value. Referenced by TiXmlNode::CopyTo(), and TiXmlText::TiXmlText(). |
|
Definition at line 301 of file tinyxmlparser.cpp. References TiXmlBase::IsWhiteSpace(), TIXML_ENCODING_UTF8, TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, and TIXML_UTF_LEAD_2. Referenced by TiXmlNode::Identify(), TiXmlDeclaration::Parse(), TiXmlAttribute::Parse(), TiXmlComment::Parse(), TiXmlUnknown::Parse(), TiXmlElement::Parse(), TiXmlDocument::Parse(), TiXmlBase::ReadText(), and TiXmlElement::ReadValue(). |
|
Implements TiXmlBase. Definition at line 1036 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), TiXmlBase::StreamOut(), and TiXmlNode::ToElement(). |
|
Definition at line 509 of file tinyxmlparser.cpp. References TiXmlBase::ToLower(). Referenced by TiXmlNode::Identify(), TiXmlDeclaration::Parse(), TiXmlComment::Parse(), TiXmlElement::Parse(), TiXmlDocument::Parse(), TiXmlBase::ReadText(), and TiXmlElement::ReadValue(). |
|
Definition at line 639 of file tinyxml.h. References TiXmlNode::value. Referenced by TiXmlNode::FirstChild(), TiXmlNode::LastChild(), TiXmlNode::NextSibling(), and TiXmlNode::PreviousSibling(). |
|
Definition at line 1245 of file tinyxml.h. Referenced by TiXmlAttribute::Parse(), and TiXmlDocument::Parse(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 613 of file tinyxml.h. References TiXmlNode::COMMENT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 606 of file tinyxml.h. References TiXmlNode::COMMENT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 616 of file tinyxml.h. References TiXmlNode::DECLARATION, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 609 of file tinyxml.h. References TiXmlNode::DECLARATION, and TiXmlNode::type. Referenced by TiXmlDocument::Parse(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 611 of file tinyxml.h. References TiXmlNode::DOCUMENT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 604 of file tinyxml.h. References TiXmlNode::DOCUMENT, and TiXmlNode::type. Referenced by TiXmlNode::GetDocument(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 612 of file tinyxml.h. References TiXmlNode::ELEMENT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 605 of file tinyxml.h. References TiXmlNode::ELEMENT, and TiXmlNode::type. Referenced by TiXmlHandle::Element(), TiXmlNode::FirstChildElement(), TiXmlNode::NextSiblingElement(), and TiXmlDocument::StreamOut(). |
|
Definition at line 317 of file tinyxml.h. References TIXML_ENCODING_UTF8. Referenced by TiXmlBase::StringEqual(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 615 of file tinyxml.h. References TiXmlNode::TEXT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 608 of file tinyxml.h. References TiXmlNode::TEXT, and TiXmlNode::type. Referenced by TiXmlElement::Print(), and TiXmlHandle::Text(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 614 of file tinyxml.h. References TiXmlNode::type, and TiXmlNode::UNKNOWN. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 607 of file tinyxml.h. References TiXmlNode::type, and TiXmlNode::UNKNOWN. Referenced by TiXmlHandle::Unknown(). |
|
Query the type (as an enumerated value, above) of this node. The possible types are: DOCUMENT, ELEMENT, COMMENT, UNKNOWN, TEXT, and DECLARATION. Definition at line 593 of file tinyxml.h. References TiXmlNode::type. |
|
The meaning of 'value' changes for the specific type of TiXmlNode. Document: filename of the xml file Element: name of the element Comment: the comment text Unknown: the tag contents Text: the text string The subclasses will wrap this function. Definition at line 425 of file tinyxml.h. References TiXmlNode::value. Referenced by TiXmlElement::Clone(), and processElement(). |
|
Definition at line 1452 of file tinyxml.cpp. |
|
Initial value: { "No error", "Error", "Failed to open file", "Memory allocation failed.", "Error parsing Element.", "Failed to read Element name", "Error reading Element value.", "Error reading Attributes.", "Error: empty tag.", "Error reading end tag.", "Error parsing Unknown.", "Error parsing Comment.", "Error parsing Declaration.", "Error document empty.", "Error null (0) or unexpected EOF found in input stream.", } Definition at line 34 of file tinyxmlerror.cpp. Referenced by TiXmlDocument::SetError(). |
|
Definition at line 644 of file tinyxml.h. Referenced by TiXmlNode::Clear(), TiXmlElement::CopyTo(), TiXmlNode::FirstChild(), TiXmlNode::InsertBeforeChild(), TiXmlNode::LinkEndChild(), TiXmlNode::NoChildren(), TiXmlDocument::Parse(), TiXmlElement::Print(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), TiXmlElement::StreamOut(), TiXmlElement::TiXmlElement(), TiXmlNode::TiXmlNode(), and TiXmlNode::~TiXmlNode(). |
|
Definition at line 645 of file tinyxml.h. Referenced by TiXmlNode::Clear(), TiXmlNode::InsertAfterChild(), TiXmlNode::LastChild(), TiXmlNode::LinkEndChild(), TiXmlElement::Print(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), TiXmlElement::TiXmlElement(), and TiXmlNode::TiXmlNode(). |
|
Definition at line 308 of file tinyxml.h. Referenced by TiXmlBase::Column(), TiXmlDocument::LoadFile(), TiXmlDeclaration::Parse(), TiXmlText::Parse(), TiXmlAttribute::Parse(), TiXmlComment::Parse(), TiXmlUnknown::Parse(), TiXmlElement::Parse(), TiXmlDocument::Parse(), and TiXmlBase::Row(). |
|
Definition at line 650 of file tinyxml.h. Referenced by TiXmlNode::Clear(), TiXmlNode::FirstChild(), TiXmlNode::InsertAfterChild(), TiXmlNode::InsertBeforeChild(), TiXmlNode::LinkEndChild(), TiXmlNode::NextSibling(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), TiXmlNode::TiXmlNode(), and TiXmlNode::~TiXmlNode(). |
|
Definition at line 641 of file tinyxml.h. Referenced by TiXmlNode::GetDocument(), TiXmlNode::Identify(), TiXmlNode::InsertAfterChild(), TiXmlNode::InsertBeforeChild(), TiXmlNode::IterateChildren(), TiXmlNode::LinkEndChild(), TiXmlNode::Parent(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), and TiXmlNode::TiXmlNode(). |
|
Definition at line 649 of file tinyxml.h. Referenced by TiXmlNode::InsertAfterChild(), TiXmlNode::InsertBeforeChild(), TiXmlNode::LastChild(), TiXmlNode::LinkEndChild(), TiXmlNode::PreviousSibling(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), and TiXmlNode::TiXmlNode(). |
|
Definition at line 642 of file tinyxml.h. Referenced by TiXmlNode::TiXmlNode(), TiXmlNode::ToComment(), TiXmlNode::ToDeclaration(), TiXmlNode::ToDocument(), TiXmlNode::ToElement(), TiXmlNode::ToText(), TiXmlNode::ToUnknown(), and TiXmlNode::Type(). |
|
Field containing a generic user pointer.
Definition at line 311 of file tinyxml.h. Referenced by TiXmlNode::CopyTo(), TiXmlBase::GetUserData(), and TiXmlBase::SetUserData(). |
|
Initial value: { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } Definition at line 56 of file tinyxmlparser.cpp. Referenced by TiXmlBase::GetChar(), and TiXmlParsingData::Stamp(). |
|
Definition at line 647 of file tinyxml.h. Referenced by TiXmlText::Blank(), TiXmlNode::CopyTo(), TiXmlDocument::LoadFile(), TiXmlText::Parse(), TiXmlAttribute::Parse(), TiXmlComment::Parse(), TiXmlUnknown::Parse(), TiXmlElement::Parse(), TiXmlUnknown::Print(), TiXmlText::Print(), TiXmlComment::Print(), TiXmlElement::Print(), TiXmlDocument::SaveFile(), TiXmlNode::SetValue(), TiXmlUnknown::StreamOut(), TiXmlText::StreamOut(), TiXmlComment::StreamOut(), TiXmlElement::StreamOut(), TiXmlNode::SValue(), TiXmlDocument::TiXmlDocument(), TiXmlElement::TiXmlElement(), and TiXmlNode::Value(). |