|
Public Member Functions |
| | Document (const std::string &version="1.0") |
| virtual | ~Document () |
| std::string | get_encoding () const |
| Dtd * | get_internal_subset () const |
| void | set_internal_subset (const std::string &name, const std::string &external_id, const std::string &system_id) |
| Element * | get_root_node () const |
| | Return the root node.
|
| Element * | create_root_node (const std::string &name, const std::string &ns_uri=std::string(), const std::string &ns_prefix=std::string()) |
| | Creates the root node.
|
| CommentNode * | add_comment (const std::string &content) |
| | Append a new comment node.
|
| void | write_to_file (const std::string &filename, const std::string &encoding=std::string()) |
| | Write the document to a file.
|
| void | write_to_file_formatted (const std::string &filename, const std::string &encoding=std::string()) |
| | Write the document to a file.
|
| std::string | write_to_string (const std::string &encoding=std::string()) |
| | Write the document to the memory.
|
| std::string | write_to_string_formatted (const std::string &encoding=std::string()) |
| | Write the document to the memory.
|
| void | write_to_stream (std::ostream &output, const std::string &encoding=std::string()) |
| | Write the document to a std::ostream.
|
| void | write_to_stream_formatted (std::ostream &output, const std::string &encoding=std::string()) |
| | Write the document to a std::ostream.
|
| virtual void | set_entity_declaration (const std::string &name, XmlEntityType type, const std::string &publicId, const std::string &systemId, const std::string &content) |
| | Add an Entity declaration to the document.
|
Protected Member Functions |
| _xmlEntity * | get_entity (const std::string &name) |
| | Retrieve an Entity.
|
Friends |
| class | DomParser |
| class | SaxParser |