40#ifndef _xmlwrapp_document_h_
41#define _xmlwrapp_document_h_
46#include "xmlwrapp/export.h"
55XMLWRAPP_MSVC_SUPPRESS_DLL_MEMBER_WARN
80struct xpath_context_impl;
107 XMLWRAPP_DEPRECATED(
"use xml::document(xml::node(root_name)) instead")
187 const
node& get_root_node() const;
205 void set_root_node(const
node& n);
214 const std::
string& get_version() const;
222 void set_version(const
char *version);
230 std::
string get_encoding() const;
241 void set_encoding(const
char *encoding);
251 bool get_is_standalone() const;
259 void set_is_standalone(
bool sa);
272 bool process_xinclude();
281 bool has_internal_subset() const;
290 bool has_external_subset() const;
322 bool validate(const
char *dtdname);
352 node::const_iterator begin() const;
368 node::const_iterator end() const;
379 void push_back (const
node &child);
471 void save_to_string(std::
string& s,
error_handler& on_error = throw_on_error) const;
490 bool save_to_file(const
char *filename,
491 int compression_level = 0,
502 friend XMLWRAPP_API std::ostream& operator<< (std::ostream &stream, const
document &doc);
505 std::unique_ptr<impl::doc_impl> pimpl_;
507 void set_doc_data (
void *data);
508 void set_doc_data_from_xslt (
void *data,
xslt::impl::result *xr);
509 void* get_doc_data();
510 void* get_doc_data_read_only() const;
511 void* release_doc_data();
516 friend class
xslt::stylesheet;
517 friend struct impl::xpath_context_impl;
522XMLWRAPP_MSVC_RESTORE_DLL_MEMBER_WARN
The xml::document class is used to hold the XML tree and various bits of information about it.
Definition document.h:88
std::size_t size_type
size type
Definition document.h:91
document()
Create a new XML document with the default settings.
The xml::error_handler class is used to handle libxml2 errors and warnings emitted during parsing,...
Definition errors.h:89
The xml::node class is used to hold information about one XML node.
Definition node.h:92
XML validator using RelaxNG.
Definition relaxng.h:72
XML Schema.
Definition schema.h:71
The xml::tree_parser class is used to parse an XML document and generate a tree like structure of xml...
Definition tree_parser.h:77
The xslt::stylesheet class is used to hold information about an XSLT stylesheet.
Definition stylesheet.h:65
This file contains errors-handling classes: xml::exception and xml::error_handler and derived classes...
XML library namespace.
Definition attributes.h:55
XSLT library namespace.
Definition document.h:59
This file contains the definition of the xml::node class.
This file contains the definition of the xml::init class.