Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::xml::XMLParser::Options Struct Reference

Options to modify the parsing behavior. More...

#include "donner/base/xml/XMLParser.h"

Public Member Functions

constexpr Options ()
 Default options.
 

Static Public Member Functions

static Options ParseAll ()
 Parse all nodes in the XML document, including comments, the doctype node, and processing instructions.
 

Public Attributes

bool parseComments = false
 Parse comments in the XML document, e.g.
 
bool parseDoctype = false
 Parse the doctype node in the XML document, e.g.
 
bool parseProcessingInstructions = false
 Parse processing instructions in the XML document, e.g.
 
bool disableEntityTranslation = false
 Disable entity translation during parsing.
 

Detailed Description

Options to modify the parsing behavior.

Member Data Documentation

◆ disableEntityTranslation

bool donner::xml::XMLParser::Options::disableEntityTranslation = false

Disable entity translation during parsing.

If this flag is set to true, built-in entities such as & and < will not be translated to their respective characters.

◆ parseComments

bool donner::xml::XMLParser::Options::parseComments = false

Parse comments in the XML document, e.g.

<!-- ... -->. If this flag is set to true, comments will be parsed as XMLNode::Type::Comment nodes added to the document tree.

◆ parseDoctype

bool donner::xml::XMLParser::Options::parseDoctype = false

Parse the doctype node in the XML document, e.g.

<!DOCTYPE ...>. If this flag is set to true, the doctype node will be parsed as a XMLNode::Type::Doctype node added to the document tree.

◆ parseProcessingInstructions

bool donner::xml::XMLParser::Options::parseProcessingInstructions = false

Parse processing instructions in the XML document, e.g.

<?php ...>. If this flag is set to true, processing instructions will be parsed as XMLNode::Type::ProcessingInstruction nodes added to the document tree.


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