Cinder  0.9.1
Public Member Functions | List of all members
cinder::XmlTree::ParseOptions Class Reference

#include <Xml.h>

Public Member Functions

 ParseOptions ()
 
ParseOptionsparseComments (bool parse=true)
 
ParseOptionscollapseCData (bool collapse=true)
 
ParseOptionsignoreDataChildren (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)
 

Detailed Description

Options for XML parsing. Passed to the XmlTree constructor.

Constructor & Destructor Documentation

cinder::XmlTree::ParseOptions::ParseOptions ( )

Default options. Disables parsing comments, enables collapsing CDATA, ignores data children.

Member Function Documentation

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.


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