document_tree¶
Defined in header: <orcus/dom_tree.hpp>
-
class document_tree¶
Ordinary DOM tree representing the content of an XML document.
Public Functions
-
document_tree(const document_tree&) = delete¶
-
document_tree &operator=(const document_tree&) = delete¶
-
document_tree(xmlns_context &cxt)¶
-
document_tree(document_tree &&other)¶
-
~document_tree()¶
-
void load(std::string_view strm)¶
Parse a given XML stream and build the content tree.
- Parameters:
strm – XML stream.
-
dom::const_node root() const¶
-
dom::const_node declaration(std::string_view name) const¶
-
void swap(document_tree &other)¶
Swap the content with another dom_tree instance.
- Parameters:
other – the dom_tree instance to swap the content with.
-
const sax::doctype_declaration *get_doctype() const¶
-
void dump_compact(std::ostream &os) const¶
-
document_tree(const document_tree&) = delete¶