XmlText Class Reference
[XML]

Text xml data node. More...

#include <XmlText.h>

Inheritance diagram for XmlText:
XmlNode IMemoryValidate

List of all members.

Public Member Functions

 XmlText (const XmlText &copy)
void operator= (const XmlText &base)
virtual String Name () const
bool CDATA () const
 Queries whether this represents text using a CDATA section.
void SetCDATA (bool _cdata)
 Turns on or off a CDATA representation of text.
virtual XmlTextPtr ToText () const
 Cast to a more defined type. Will return null not of the requested type.
bool IsBlank () const
virtual StringPtr ToString () const
virtual void WriteTo (TextWriter &writer) const

Static Public Member Functions

static XmlTextPtr CreateText (const String &val)
static void XmlEncode (const String &str, StringBuffer &outString)

Protected Member Functions

virtual XmlNodePtr Clone () const
 [internal use] Creates a new Element and returns it.
void CopyTo (XmlText &target) const
virtual const char * _Parse (const char *p, XmlParsingData *data, XmlEncoding encoding)
 XmlText (const String &initValue)

Protected Attributes

bool m_cdata

Friends

class XmlDocument
class XmlElement
class TinyXmlParser
class XmlNode
void _TestTinyXml ()

Detailed Description

Text xml data node.

Definition at line 32 of file XmlText.h.


Constructor & Destructor Documentation

XmlText::XmlText ( const String initValue  )  [protected]

Constructor for text element. By default, it is treated as normal, encoded text. If you want it be output as a CDATA text element, set the parameter _cdata to 'true'

Definition at line 163 of file TinyXml.cpp.

References XmlNode::SetValue().

Referenced by Clone().


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