Text xml data node. More...
#include <XmlText.h>
Public Member Functions | |
| XmlText (const XmlText ©) | |
| 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 () |
Text xml data node.
Definition at line 32 of file XmlText.h.
| 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().