![]() |
Cinder
0.9.1
|
#include <Xml.h>
Public Member Functions | |
ParseOptions () | |
ParseOptions & | parseComments (bool parse=true) |
ParseOptions & | collapseCData (bool collapse=true) |
ParseOptions & | ignoreDataChildren (bool ignore=true) |
bool | getParseComments () const |
void | setParseComments (bool parseComments=true) |
bool | getCollapseCData () const |
void | setCollapseCData (bool collapseCData=true) |
bool | getIgnoreDataChildren () const |
void | setIgnoreDataChildren (bool ignore=true) |
Options for XML parsing. Passed to the XmlTree constructor.
cinder::XmlTree::ParseOptions::ParseOptions | ( | ) |
Default options. Disables parsing comments, enables collapsing CDATA, ignores data children.
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.
ParseOptions& cinder::XmlTree::ParseOptions::ignoreDataChildren | ( | bool | ignore = true | ) |
Sets whether data nodes are created as children, in addition to being available as the value of the parent. Default true.
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.
bool cinder::XmlTree::ParseOptions::getIgnoreDataChildren | ( | ) | const |
Returns whether data nodes are created as children, in addition to being available as the value of the parent.
void cinder::XmlTree::ParseOptions::setIgnoreDataChildren | ( | bool | ignore = true | ) |
Sets whether data nodes are created as children, in addition to being available as the value of the parent.