Options for XML parsing. Passed to the XmlTree constructor. More...
#include <Xml.h>
Public Member Functions | |
ParseOptions () | |
Default options. Disables parsing comments and enables collapsing CDATA. | |
ParseOptions & | parseComments (bool parse=true) |
Sets whether XML comments are parsed or not. | |
ParseOptions & | collapseCData (bool collapse=true) |
Sets whether CDATA blocks are collapsed automatically or not. | |
bool | getParseComments () const |
Returns whether XML comments are parsed or not. | |
void | setParseComments (bool parseComments=true) |
Sets whether XML comments are parsed or not. | |
bool | getCollapseCData () const |
Returns whether CDATA blocks are collapsed automatically or not. | |
void | setCollapseCData (bool collapseCData=true) |
Sets whether CDATA blocks are collapsed automatically or not. |
Options for XML parsing. Passed to the XmlTree constructor.
cinder::XmlTree::ParseOptions::ParseOptions | ( | ) |
Default options. Disables parsing comments and enables collapsing CDATA.
ParseOptions& cinder::XmlTree::ParseOptions::parseComments | ( | bool | parse = true |
) |
Sets whether XML comments are parsed or not.
ParseOptions& cinder::XmlTree::ParseOptions::collapseCData | ( | bool | collapse = true |
) |
Sets whether CDATA blocks are collapsed automatically or not.
bool cinder::XmlTree::ParseOptions::getParseComments | ( | ) | const |
Returns whether XML comments are parsed or not.
void cinder::XmlTree::ParseOptions::setParseComments | ( | bool | parseComments = true |
) |
Sets whether XML comments are parsed or not.
bool cinder::XmlTree::ParseOptions::getCollapseCData | ( | ) | const |
Returns whether CDATA blocks are collapsed automatically or not.
void cinder::XmlTree::ParseOptions::setCollapseCData | ( | bool | collapseCData = true |
) |
Sets whether CDATA blocks are collapsed automatically or not.