XMLCData Class
The XMLCData class handles parsing of CDATA sections. More...
Header: | #include <XMLCData> |
Inherits: | XMLPrimitive |
Public Functions
XMLCData(void) | |
virtual | ~XMLCData() |
XMLCData * | GetChild() |
XMLCData * | GetNext() |
XMLCData * | GetPrevious() |
const XMLString & | GetValue() const |
void | SetValue(const char *pzValue) |
Reimplemented Public Functions
virtual bool | Dump(FILE *pFile) |
virtual char * | Dump(char *pzBuffer) |
virtual void | Dump(XMLBuffer &strBuffer) |
virtual unsigned int | GetWriteBufferSize() |
virtual const char * | Parse(const char *pStart, unsigned int &nLineNumber) |
- 37 public functions inherited from XMLPrimitive
Additional Inherited Members
- 1 static public member inherited from XMLPrimitive
Detailed Description
The XMLCData class handles parsing of CDATA sections.
Example CDATA section:
<![CDATA[ <<<IF>> you've got raw & un-\escaped "text"? <<<THEN>>> Put it in a CDATA section! ]]>
The CDATA can be retrieved by calling GetValue() , and can be set by calling SetValue().
Member Function Documentation
XMLCData::XMLCData(void)
Constructs XMLCData and sets type to e_XMLCData.
[virtual]
XMLCData::~XMLCData()
Destructs the XMLCData.
[virtual]
bool XMLCData::Dump(FILE *pFile)
Reimplemented from XMLPrimitive::Dump().
Appends the CDATA section to pFile.
[virtual]
char *XMLCData::Dump(char *pzBuffer)
Reimplemented from XMLPrimitive::Dump().
Appends CDATA into the supplied pzBuffer.
See also GetWriteBufferSize().
[virtual]
void XMLCData::Dump(XMLBuffer &strBuffer)
Reimplemented from XMLPrimitive::Dump().
Appends CDATA into strBuffer.
XMLCData *XMLCData::GetChild()
Returns nullptr, as CDATA has no children.
XMLCData *XMLCData::GetNext()
Gets the next XMLPrimitive of type XMLCData at this level, or nullptr if none.
XMLCData *XMLCData::GetPrevious()
Returns the previous XML primitive of type XMLCData at this level , or nullptr if none.
const XMLString &XMLCData::GetValue() const
Returns the CDATA value.
[virtual]
unsigned int XMLCData::GetWriteBufferSize()
Reimplemented from XMLPrimitive::GetWriteBufferSize().
Returns the size required for writing this CDATA primitive.
[virtual]
const char *XMLCData::Parse(const char *pStart, unsigned int &nLineNumber)
Reimplemented from XMLPrimitive::Parse().
Parses the buffer supplied in pStart. Returns pointer to characters after this primitive.
void XMLCData::SetValue(const char *pzValue)
Set the CDATA value (may or may not contain <![CDATA[ ]]>.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.