Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CEGUI::TinyXMLDocument Class Reference

Inheritance diagram for CEGUI::TinyXMLDocument:

Inheritance graph
[legend]
Collaboration diagram for CEGUI::TinyXMLDocument:

Collaboration graph
[legend]
List of all members.

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 TiXmlElementRootElement () const
TiXmlElementRootElement ()
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'.
TiXmlNodeParent ()
 One step up the DOM.
const TiXmlNodeParent () const
const TiXmlNodeFirstChild () const
 The first child of this node. Will be null if there are no children.
TiXmlNodeFirstChild ()
const TiXmlNodeFirstChild (const char *value) const
 The first child of this node with the matching 'value'. Will be null if none found.
TiXmlNodeFirstChild (const char *value)
 The first child of this node with the matching 'value'. Will be null if none found.
const TiXmlNodeLastChild () const
TiXmlNodeLastChild ()
 The last child of this node. Will be null if there are no children.
const TiXmlNodeLastChild (const char *value) const
TiXmlNodeLastChild (const char *value)
 The last child of this node matching 'value'. Will be null if there are no children.
const TiXmlNodeIterateChildren (TiXmlNode *previous) const
TiXmlNodeIterateChildren (TiXmlNode *previous)
const TiXmlNodeIterateChildren (const char *value, TiXmlNode *previous) const
 This flavor of IterateChildren searches for children with a particular 'value'.
TiXmlNodeIterateChildren (const char *value, TiXmlNode *previous)
TiXmlNodeInsertEndChild (const TiXmlNode &addThis)
TiXmlNodeLinkEndChild (TiXmlNode *addThis)
TiXmlNodeInsertBeforeChild (TiXmlNode *beforeThis, const TiXmlNode &addThis)
TiXmlNodeInsertAfterChild (TiXmlNode *afterThis, const TiXmlNode &addThis)
TiXmlNodeReplaceChild (TiXmlNode *replaceThis, const TiXmlNode &withThis)
bool RemoveChild (TiXmlNode *removeThis)
 Delete a child of this node.
const TiXmlNodePreviousSibling () const
 Navigate to a sibling node.
TiXmlNodePreviousSibling ()
const TiXmlNodePreviousSibling (const char *) const
 Navigate to a sibling node.
TiXmlNodePreviousSibling (const char *)
const TiXmlNodeNextSibling () const
 Navigate to a sibling node.
TiXmlNodeNextSibling ()
const TiXmlNodeNextSibling (const char *) const
 Navigate to a sibling node with the given 'value'.
TiXmlNodeNextSibling (const char *)
const TiXmlElementNextSiblingElement () const
TiXmlElementNextSiblingElement ()
const TiXmlElementNextSiblingElement (const char *) const
TiXmlElementNextSiblingElement (const char *)
const TiXmlElementFirstChildElement () const
 Convenience function to get through elements.
TiXmlElementFirstChildElement ()
const TiXmlElementFirstChildElement (const char *value) const
 Convenience function to get through elements.
TiXmlElementFirstChildElement (const char *value)
virtual int Type () const
const TiXmlDocumentGetDocument () const
TiXmlDocumentGetDocument ()
bool NoChildren () const
 Returns true if this node has no children.
const TiXmlDocumentToDocument () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlDocumentToDocument ()
 Cast to a more defined type. Will return null not of the requested type.
const TiXmlElementToElement () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlElementToElement ()
 Cast to a more defined type. Will return null not of the requested type.
const TiXmlCommentToComment () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlCommentToComment ()
 Cast to a more defined type. Will return null not of the requested type.
const TiXmlUnknownToUnknown () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlUnknownToUnknown ()
 Cast to a more defined type. Will return null not of the requested type.
const TiXmlTextToText () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlTextToText ()
 Cast to a more defined type. Will return null not of the requested type.
const TiXmlDeclarationToDeclaration () const
 Cast to a more defined type. Will return null not of the requested type.
TiXmlDeclarationToDeclaration ()
 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 TiXmlNodeClone () const
void CopyTo (TiXmlNode *target) const
TiXmlNodeIdentify (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

TiXmlNodeparent
NodeType type
TiXmlNodefirstChild
TiXmlNodelastChild
TIXML_STRING value
TiXmlNodeprev
TiXmlNodenext
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)

Detailed Description

Definition at line 35 of file CEGUITinyXMLParser.cpp.


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
TIXML_NO_ERROR 
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 

Definition at line 193 of file tinyxml.h.

enum TiXmlNode::NodeType [inherited]
 

The types of XML nodes supported by TinyXml. (All the unsupported types are picked up by UNKNOWN.)

Enumerator:
DOCUMENT 
ELEMENT 
COMMENT 
UNKNOWN 
TEXT 
DECLARATION 
TYPECOUNT 

Definition at line 400 of file tinyxml.h.


Constructor & Destructor Documentation

CEGUI::TinyXMLDocument::TinyXMLDocument XMLHandler handler,
const String filename,
const String schemaName,
const String resourceGroup
 

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().

CEGUI::TinyXMLDocument::~TinyXMLDocument  )  [inline]
 

Definition at line 39 of file CEGUITinyXMLParser.cpp.


Member Function Documentation

void TiXmlNode::Clear  )  [inherited]
 

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=().

void TiXmlDocument::ClearError  )  [inline, inherited]
 

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().

TiXmlNode * TiXmlDocument::Clone  )  const [protected, virtual, inherited]
 

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().

int TiXmlBase::Column  )  const [inline, inherited]
 

See Row().

Definition at line 180 of file tinyxml.h.

References TiXmlCursor::col, and TiXmlBase::location.

void TiXmlBase::ConvertUTF32ToUTF8 unsigned long  input,
char *  output,
int *  length
[static, protected, inherited]
 

Definition at line 78 of file tinyxmlparser.cpp.

Referenced by TiXmlBase::GetEntity().

void TiXmlNode::CopyTo TiXmlNode target  )  const [protected, inherited]
 

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().

bool TiXmlDocument::Error  )  const [inline, inherited]
 

If an error occurs, Error will be set to true. Also,

  • The ErrorId() will contain the integer identifier of the error (not generally useful)
  • The ErrorDesc() method will return the name of the error. (very useful)
  • The ErrorRow() and ErrorCol() will return the location of the error (if known)

Definition at line 1203 of file tinyxml.h.

Referenced by TiXmlDocument::LoadFile().

int TiXmlDocument::ErrorCol  )  [inline, inherited]
 

The column where the error occured. See ErrorRow().

Definition at line 1221 of file tinyxml.h.

References TiXmlCursor::col.

const char* TiXmlDocument::ErrorDesc  )  const [inline, inherited]
 

Contains a textual (english) description of the error if one occurs.

Definition at line 1206 of file tinyxml.h.

const int TiXmlDocument::ErrorId  )  const [inline, inherited]
 

Generally, you probably want the error string ( ErrorDesc() ). But if you prefer the ErrorId, this function will fetch it.

Definition at line 1211 of file tinyxml.h.

int TiXmlDocument::ErrorRow  )  [inline, inherited]
 

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.)

See also:
SetTabSize, Row, Column

Definition at line 1220 of file tinyxml.h.

References TiXmlCursor::row.

TiXmlNode * TiXmlNode::FirstChild const char *  value  )  [inherited]
 

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.

const TiXmlNode * TiXmlNode::FirstChild const char *  value  )  const [inherited]
 

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.

TiXmlNode* TiXmlNode::FirstChild  )  [inline, inherited]
 

Definition at line 455 of file tinyxml.h.

References TiXmlNode::firstChild.

const TiXmlNode* TiXmlNode::FirstChild  )  const [inline, inherited]
 

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().

TiXmlElement * TiXmlNode::FirstChildElement const char *  value  )  [inherited]
 

Definition at line 510 of file tinyxml.cpp.

References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement().

const TiXmlElement * TiXmlNode::FirstChildElement const char *  value  )  const [inherited]
 

Convenience function to get through elements.

Definition at line 496 of file tinyxml.cpp.

References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement().

TiXmlElement * TiXmlNode::FirstChildElement  )  [inherited]
 

Definition at line 482 of file tinyxml.cpp.

References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement().

const TiXmlElement * TiXmlNode::FirstChildElement  )  const [inherited]
 

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().

static const char* TiXmlBase::GetChar const char *  p,
char *  _value,
int *  length,
TiXmlEncoding  encoding
[inline, static, protected, inherited]
 

Definition at line 260 of file tinyxml.h.

References TiXmlBase::GetEntity(), TIXML_ENCODING_UTF8, and TiXmlBase::utf8ByteTable.

Referenced by TiXmlBase::ReadText().

TiXmlDocument * TiXmlNode::GetDocument  )  [inherited]
 

Definition at line 593 of file tinyxml.cpp.

References TiXmlNode::parent, and TiXmlNode::ToDocument().

const TiXmlDocument * TiXmlNode::GetDocument  )  const [inherited]
 

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().

const char * TiXmlBase::GetEntity const char *  in,
char *  value,
int *  length,
TiXmlEncoding  encoding
[static, protected, inherited]
 

Definition at line 413 of file tinyxmlparser.cpp.

References TiXmlBase::ConvertUTF32ToUTF8(), TIXML_ENCODING_UTF8, and TIXML_STRING.

Referenced by TiXmlBase::GetChar().

void* TiXmlBase::GetUserData  )  [inline, inherited]
 

Definition at line 183 of file tinyxml.h.

References TiXmlBase::userData.

TiXmlNode * TiXmlNode::Identify const char *  start,
TiXmlEncoding  encoding
[protected, inherited]
 

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().

TiXmlNode * TiXmlNode::InsertAfterChild TiXmlNode afterThis,
const TiXmlNode addThis
[inherited]
 

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.

TiXmlNode * TiXmlNode::InsertBeforeChild TiXmlNode beforeThis,
const TiXmlNode addThis
[inherited]
 

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.

TiXmlNode * TiXmlNode::InsertEndChild const TiXmlNode addThis  )  [inherited]
 

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().

int TiXmlBase::IsAlpha unsigned char  anyByte,
TiXmlEncoding  encoding
[static, protected, inherited]
 

Definition at line 119 of file tinyxmlparser.cpp.

Referenced by TiXmlNode::Identify(), and TiXmlBase::ReadName().

int TiXmlBase::IsAlphaNum unsigned char  anyByte,
TiXmlEncoding  encoding
[static, protected, inherited]
 

Definition at line 140 of file tinyxmlparser.cpp.

Referenced by TiXmlBase::ReadName().

static bool TiXmlBase::IsWhiteSpace char  c  )  [inline, static, protected, inherited]
 

Definition at line 227 of file tinyxml.h.

Referenced by TiXmlText::Blank(), TiXmlDeclaration::Parse(), TiXmlAttribute::Parse(), TiXmlBase::ReadText(), and TiXmlBase::SkipWhiteSpace().

static bool TiXmlBase::IsWhiteSpaceCondensed  )  [inline, static, inherited]
 

Return the current white space setting.

Definition at line 159 of file tinyxml.h.

Referenced by TiXmlElement::ReadValue().

TiXmlNode * TiXmlNode::IterateChildren const char *  value,
TiXmlNode previous
[inherited]
 

Definition at line 401 of file tinyxml.cpp.

References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent.

const TiXmlNode * TiXmlNode::IterateChildren const char *  value,
TiXmlNode previous
const [inherited]
 

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.

TiXmlNode * TiXmlNode::IterateChildren TiXmlNode previous  )  [inherited]
 

Definition at line 375 of file tinyxml.cpp.

References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent.

const TiXmlNode * TiXmlNode::IterateChildren TiXmlNode previous  )  const [inherited]
 

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.

TiXmlNode * TiXmlNode::LastChild const char *  value  )  [inherited]
 

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.

const TiXmlNode * TiXmlNode::LastChild const char *  value  )  const [inherited]
 

Definition at line 340 of file tinyxml.cpp.

References TiXmlNode::lastChild, TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING.

TiXmlNode* TiXmlNode::LastChild  )  [inline, inherited]
 

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.

const TiXmlNode* TiXmlNode::LastChild  )  const [inline, inherited]
 

Definition at line 459 of file tinyxml.h.

References TiXmlNode::lastChild.

TiXmlNode * TiXmlNode::LinkEndChild TiXmlNode addThis  )  [inherited]
 

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.

See also:
InsertEndChild

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().

bool TiXmlDocument::LoadFile const char *  filename,
TiXmlEncoding  encoding = TIXML_DEFAULT_ENCODING
[inherited]
 

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.

bool TiXmlDocument::LoadFile TiXmlEncoding  encoding = TIXML_DEFAULT_ENCODING  )  [inherited]
 

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.

TiXmlNode * TiXmlNode::NextSibling const char *   )  [inherited]
 

Definition at line 425 of file tinyxml.cpp.

References TiXmlNode::next, TiXmlNode::SValue(), and TIXML_CAST_STRING.

const TiXmlNode * TiXmlNode::NextSibling const char *   )  const [inherited]
 

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.

TiXmlNode* TiXmlNode::NextSibling  )  [inline, inherited]
 

Definition at line 551 of file tinyxml.h.

References TiXmlNode::next.

const TiXmlNode* TiXmlNode::NextSibling  )  const [inline, inherited]
 

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().

TiXmlElement * TiXmlNode::NextSiblingElement const char *   )  [inherited]
 

Definition at line 566 of file tinyxml.cpp.

References TiXmlNode::NextSibling(), and TiXmlNode::ToElement().

const TiXmlElement * TiXmlNode::NextSiblingElement const char *   )  const [inherited]
 

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().

TiXmlElement * TiXmlNode::NextSiblingElement  )  [inherited]
 

Definition at line 538 of file tinyxml.cpp.

References TiXmlNode::NextSibling(), and TiXmlNode::ToElement().

const TiXmlElement * TiXmlNode::NextSiblingElement  )  const [inherited]
 

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().

bool TiXmlNode::NoChildren  )  const [inline, inherited]
 

Returns true if this node has no children.

Definition at line 602 of file tinyxml.h.

References TiXmlNode::firstChild.

const TiXmlNode* TiXmlNode::Parent  )  const [inline, inherited]
 

Definition at line 452 of file tinyxml.h.

References TiXmlNode::parent.

TiXmlNode* TiXmlNode::Parent  )  [inline, inherited]
 

One step up the DOM.

Definition at line 451 of file tinyxml.h.

References TiXmlNode::parent.

const char * TiXmlDocument::Parse const char *  p,
TiXmlParsingData data = 0,
TiXmlEncoding  encoding = TIXML_DEFAULT_ENCODING
[virtual, inherited]
 

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().

TiXmlNode * TiXmlNode::PreviousSibling const char *   )  [inherited]
 

Definition at line 447 of file tinyxml.cpp.

References TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING.

const TiXmlNode * TiXmlNode::PreviousSibling const char *   )  const [inherited]
 

Navigate to a sibling node.

Definition at line 436 of file tinyxml.cpp.

References TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING.

TiXmlNode* TiXmlNode::PreviousSibling  )  [inline, inherited]
 

Definition at line 536 of file tinyxml.h.

References TiXmlNode::prev.

const TiXmlNode* TiXmlNode::PreviousSibling  )  const [inline, inherited]
 

Navigate to a sibling node.

Definition at line 535 of file tinyxml.h.

References TiXmlNode::prev.

void TiXmlDocument::Print FILE *  cfile,
int  depth = 0
const [virtual, inherited]
 

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().

void TiXmlDocument::Print  )  const [inline, inherited]
 

Dump the document to standard out.

Definition at line 1258 of file tinyxml.h.

Referenced by TiXmlDocument::SaveFile().

void CEGUI::TinyXMLDocument::processElement const TiXmlElement element  )  [protected]
 

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().

void TiXmlBase::PutString const TIXML_STRING &  str,
TIXML_STRING *  out
[static, protected, inherited]
 

Definition at line 42 of file tinyxml.cpp.

void TiXmlBase::PutString const TIXML_STRING &  str,
TIXML_OSTREAM *  out
[static, protected, inherited]
 

Definition at line 35 of file tinyxml.cpp.

References TIXML_STRING.

Referenced by TiXmlText::Print(), TiXmlAttribute::Print(), TiXmlDeclaration::StreamOut(), TiXmlText::StreamOut(), and TiXmlAttribute::StreamOut().

const char * TiXmlBase::ReadName const char *  p,
TIXML_STRING *  name,
TiXmlEncoding  encoding
[static, protected, inherited]
 

Definition at line 383 of file tinyxmlparser.cpp.

References TiXmlBase::IsAlpha(), and TiXmlBase::IsAlphaNum().

Referenced by TiXmlAttribute::Parse(), and TiXmlElement::Parse().

const char * TiXmlBase::ReadText const char *  in,
TIXML_STRING *  text,
bool  ignoreWhiteSpace,
const char *  endTag,
bool  ignoreCase,
TiXmlEncoding  encoding
[static, protected, inherited]
 

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().

bool TiXmlNode::RemoveChild TiXmlNode removeThis  )  [inherited]
 

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.

TiXmlNode * TiXmlNode::ReplaceChild TiXmlNode replaceThis,
const TiXmlNode withThis
[inherited]
 

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.

TiXmlElement* TiXmlDocument::RootElement  )  [inline, inherited]
 

Definition at line 1196 of file tinyxml.h.

References TiXmlNode::FirstChildElement().

const TiXmlElement* TiXmlDocument::RootElement  )  const [inline, inherited]
 

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().

int TiXmlBase::Row  )  const [inline, inherited]
 

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.

See also:
TiXmlDocument::SetTabSize()

Definition at line 179 of file tinyxml.h.

References TiXmlBase::location, and TiXmlCursor::row.

bool TiXmlDocument::SaveFile const char *  filename  )  const [inherited]
 

Save a file using the given filename. Returns true if successful.

Definition at line 986 of file tinyxml.cpp.

References TiXmlDocument::Print().

bool TiXmlDocument::SaveFile  )  const [inherited]
 

Save a file using the current document value. Returns true if successful.

Definition at line 917 of file tinyxml.cpp.

References TiXmlNode::value.

static void TiXmlBase::SetCondenseWhiteSpace bool  condense  )  [inline, static, inherited]
 

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 156 of file tinyxml.h.

void TiXmlDocument::SetError int  err,
const char *  errorLocation,
TiXmlParsingData prevData,
TiXmlEncoding  encoding
[inherited]
 

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().

void TiXmlDocument::SetTabSize int  _tabsize  )  [inline, inherited]
 

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" );
		

See also:
Row, Column

Definition at line 1243 of file tinyxml.h.

void TiXmlBase::SetUserData void *  user  )  [inline, inherited]
 

Definition at line 182 of file tinyxml.h.

References TiXmlBase::userData.

void TiXmlNode::SetValue const char *  _value  )  [inline, inherited]
 

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().

const char * TiXmlBase::SkipWhiteSpace const char *  ,
TiXmlEncoding  encoding
[static, protected, inherited]
 

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().

void TiXmlDocument::StreamOut TIXML_OSTREAM *  out  )  const [protected, virtual, inherited]
 

Implements TiXmlBase.

Definition at line 1036 of file tinyxml.cpp.

References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), TiXmlBase::StreamOut(), and TiXmlNode::ToElement().

bool TiXmlBase::StringEqual const char *  p,
const char *  endTag,
bool  ignoreCase,
TiXmlEncoding  encoding
[static, protected, inherited]
 

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().

const TIXML_STRING& TiXmlNode::SValue  )  const [inline, protected, inherited]
 

Definition at line 639 of file tinyxml.h.

References TiXmlNode::value.

Referenced by TiXmlNode::FirstChild(), TiXmlNode::LastChild(), TiXmlNode::NextSibling(), and TiXmlNode::PreviousSibling().

int TiXmlDocument::TabSize  )  const [inline, inherited]
 

Definition at line 1245 of file tinyxml.h.

Referenced by TiXmlAttribute::Parse(), and TiXmlDocument::Parse().

TiXmlComment* TiXmlNode::ToComment  )  [inline, inherited]
 

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.

const TiXmlComment* TiXmlNode::ToComment  )  const [inline, inherited]
 

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.

TiXmlDeclaration* TiXmlNode::ToDeclaration  )  [inline, inherited]
 

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.

const TiXmlDeclaration* TiXmlNode::ToDeclaration  )  const [inline, inherited]
 

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().

TiXmlDocument* TiXmlNode::ToDocument  )  [inline, inherited]
 

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.

const TiXmlDocument* TiXmlNode::ToDocument  )  const [inline, inherited]
 

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().

TiXmlElement* TiXmlNode::ToElement  )  [inline, inherited]
 

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.

const TiXmlElement* TiXmlNode::ToElement  )  const [inline, inherited]
 

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().

static int TiXmlBase::ToLower int  v,
TiXmlEncoding  encoding
[inline, static, protected, inherited]
 

Definition at line 317 of file tinyxml.h.

References TIXML_ENCODING_UTF8.

Referenced by TiXmlBase::StringEqual().

TiXmlText* TiXmlNode::ToText  )  [inline, inherited]
 

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.

const TiXmlText* TiXmlNode::ToText  )  const [inline, inherited]
 

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().

TiXmlUnknown* TiXmlNode::ToUnknown  )  [inline, inherited]
 

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.

const TiXmlUnknown* TiXmlNode::ToUnknown  )  const [inline, inherited]
 

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().

virtual int TiXmlNode::Type  )  const [inline, virtual, inherited]
 

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.

const char* TiXmlNode::Value  )  const [inline, inherited]
 

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().


Friends And Related Function Documentation

TIXML_OSTREAM& operator<< TIXML_OSTREAM &  out,
const TiXmlNode base
[friend, inherited]
 

Definition at line 1452 of file tinyxml.cpp.


Member Data Documentation

const char * TiXmlBase::errorString [static, protected, inherited]
 

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().

TiXmlNode* TiXmlNode::firstChild [protected, inherited]
 

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().

TiXmlNode* TiXmlNode::lastChild [protected, inherited]
 

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().

TiXmlCursor TiXmlBase::location [protected, inherited]
 

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().

TiXmlNode* TiXmlNode::next [protected, inherited]
 

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().

TiXmlNode* TiXmlNode::parent [protected, inherited]
 

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().

TiXmlNode* TiXmlNode::prev [protected, inherited]
 

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().

NodeType TiXmlNode::type [protected, inherited]
 

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().

void* TiXmlBase::userData [protected, inherited]
 

Field containing a generic user pointer.

Definition at line 311 of file tinyxml.h.

Referenced by TiXmlNode::CopyTo(), TiXmlBase::GetUserData(), and TiXmlBase::SetUserData().

const int TiXmlBase::utf8ByteTable [static, inherited]
 

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().

TIXML_STRING TiXmlNode::value [protected, inherited]
 

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().


The documentation for this class was generated from the following file:
Generated on Wed Sep 7 10:10:32 2005 for Crazy Eddies GUI System by  doxygen 1.4.3