Orcus
Public Member Functions | List of all members
orcus::dom::document_tree Class Reference

#include <dom_tree.hpp>

Public Member Functions

 document_tree (const document_tree &)=delete
 
document_treeoperator= (const document_tree &)=delete
 
 document_tree (xmlns_context &cxt)
 
 document_tree (document_tree &&other)
 
void load (std::string_view strm)
 
dom::const_node root () const
 
dom::const_node declaration (std::string_view name) const
 
void swap (document_tree &other)
 
const sax::doctype_declarationget_doctype () const
 
void dump_compact (std::ostream &os) const
 

Detailed Description

Ordinary DOM tree representing the content of an XML document.

Member Function Documentation

◆ load()

void orcus::dom::document_tree::load ( std::string_view  strm)

Parse a given XML stream and build the content tree.

Parameters
strmXML stream.

◆ swap()

void orcus::dom::document_tree::swap ( document_tree other)

Swap the content with another dom_tree instance.

Parameters
otherthe dom_tree instance to swap the content with.