- Note
- It can be tree(<something>), text, doctype(<!something!>), comment(<!--something-->), cdata(<![CDATA[something]]>), declaration(<?something?>)
- Warning
- inner parameters of doctype and declaration nodes is not fully parsed - instead data between markers is stored as single string. 
CDATAType type in which cdata nodes are stored. 
 
 
CommentType type in which comments are stored. 
 
 
DeclarationType type in which declaration nodes are stored. 
 
 
DoctypeType type in which doctype node is stored. 
 
 
TextType type in which text nodes are stored. 
 
 
The Type enum is used to check which. 
 
 
XML construct documet type empty node. 
 
 
  
  | 
        
          | rili::XML::XML | ( | std::string const & | xml, |  
          |  |  | size_t | maxDepth = 100 |  
          |  | ) |  |  |  | inline | 
 
XML used to construct nodes tree based on given xml string. 
- Parameters
- 
  
    | xml | data to parse |  | maxDepth | maximal allowed nasted elements depth |  
 
 
 
cdata used to get node as cdata node 
- Returns
 
 
cdata used to get node as cdata node 
- Returns
 
 
cdata used to set node as cdata node 
- Parameters
- 
  
  
 
 
comment used to get node as comment node 
- Returns
 
 
comment used to get node as comment node 
- Returns
 
 
comment used to set node as comment node 
- Parameters
- 
  
  
 
 
declaration used to get node as declaration node 
- Returns
 
 
declaration used to get node as declaration node 
- Returns
 
 
declaration used to set node as declaration node 
- Parameters
- 
  
  
 
 
doctype used to get node as doctype node 
- Returns
 
 
doctype used to get node as doctype node 
- Returns
 
 
doctype used to set node as doctype node 
- Parameters
- 
  
  
 
 
document used to get node as document node 
- Returns
 
 
document used to get node as document node 
- Returns
 
 
document used to set node as document node 
- Parameters
- 
  
  
 
 
      
        
          | void rili::XML::parse | ( | const std::string & | xml, | 
        
          |  |  | size_t | maxDepth = 100 | 
        
          |  | ) |  |  | 
      
 
parse used to parse nodes tree based on given xml string on current xml object 
- Parameters
- 
  
    | xml | data to parse |  | maxDepth | maximal allowed nasted elements depth |  
 
 
 
  
  | 
        
          | std::string rili::XML::stringify | ( |  | ) | const |  | noexcept | 
 
stringify convert XML objects tree into string document representation 
- Returns
- stringified xml document 
 
 
text used to get node as text node 
- Returns
 
 
  
  | 
        
          | TextType const& rili::XML::text | ( |  | ) | const |  | inline | 
 
text used to get node as text node 
- Returns
 
 
  
  | 
        
          | void rili::XML::text | ( | TextType const & | t | ) |  |  | inline | 
 
text used to set node as text node 
- Parameters
- 
  
  
 
 
tree used to get node as tree node 
- Returns
 
 
  
  | 
        
          | TreeType const& rili::XML::tree | ( |  | ) | const |  | inline | 
 
tree used to get node as tree node 
- Returns
 
 
  
  | 
        
          | void rili::XML::tree | ( | TreeType const & | t | ) |  |  | inline | 
 
tree used to set node as tree node 
- Parameters
- 
  
  
 
 
  
  | 
        
          | Type rili::XML::type | ( |  | ) | const |  | inlinenoexcept | 
 
type used to check type of node 
- Returns
 
 
The documentation for this class was generated from the following file: