Tree of Element nodes defined by an XML file.
More...
#include <donut/xml.hpp>
|
| static Document | parse (std::string_view xmlString) |
| | Parse a document from an XML string.
|
| |
Tree of Element nodes defined by an XML file.
◆ parse()
| static Document donut::xml::Document::parse |
( |
std::string_view |
xmlString | ) |
|
|
static |
Parse a document from an XML string.
- Parameters
-
| xmlString | read-only view over the XML string to parse. |
- Returns
- the parsed document.
- Exceptions
-
| Error | on failure to parse any element of the document. |
| std::bad_alloc | on allocation failure. |
◆ declaration
| std::unique_ptr<Element> donut::xml::Document::declaration {} |
Optional XML declaration.
◆ root
| std::unique_ptr<Element> donut::xml::Document::root {} |
Root element of the document tree.
The documentation for this struct was generated from the following file: