Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

xmlpp::Document Class Reference

Inheritance diagram for xmlpp::Document:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Document (const std::string &version="1.0")
virtual ~Document ()
std::string get_encoding () const
Dtdget_internal_subset () const
void set_internal_subset (const std::string &name, const std::string &external_id, const std::string &system_id)
Elementget_root_node () const
Elementcreate_root_node (const std::string &name, const std::string &ns_uri=std::string(), const std::string &ns_prefix=std::string())
 Creates the root node.

virtual void write_to_file (const std::string &filename, const std::string &encoding=std::string())
virtual void write_to_file_formatted (const std::string &filename, const std::string &encoding=std::string())
virtual std::string write_to_string (const std::string &encoding=std::string())
virtual std::string write_to_string_formatted (const std::string &encoding=std::string())

Friends

class DomParser

Constructor & Destructor Documentation

xmlpp::Document::Document const std::string &  version = "1.0"  )  [explicit]
 

virtual xmlpp::Document::~Document  )  [virtual]
 


Member Function Documentation

Element* xmlpp::Document::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.

Parameters:
name The node's name.
ns_uri The namespace URI. A namspace declaration will be added to this node, because it could not have been declared before.
ns_prefix The namespace prefix to associate with the namespace. If no namespace prefix is specified then the namespace URI will be the default namespace.

std::string xmlpp::Document::get_encoding  )  const
 

Dtd* xmlpp::Document::get_internal_subset  )  const
 

Element* xmlpp::Document::get_root_node  )  const
 

void xmlpp::Document::set_internal_subset const std::string &  name,
const std::string &  external_id,
const std::string &  system_id
 

virtual void xmlpp::Document::write_to_file const std::string &  filename,
const std::string &  encoding = std::string()
[virtual]
 

virtual void xmlpp::Document::write_to_file_formatted const std::string &  filename,
const std::string &  encoding = std::string()
[virtual]
 

virtual std::string xmlpp::Document::write_to_string const std::string &  encoding = std::string()  )  [virtual]
 

virtual std::string xmlpp::Document::write_to_string_formatted const std::string &  encoding = std::string()  )  [virtual]
 


Friends And Related Function Documentation

friend class DomParser [friend]
 


The documentation for this class was generated from the following file:
Generated on Wed Nov 12 18:25:47 2003 for libxml++ by doxygen 1.3.4