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

xmlpp::DomParser Class Reference

XML DOM parser. More...

Inheritance diagram for xmlpp::DomParser:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DomParser ()
 DomParser (const std::string &filename, bool validate=false)
 Instantiate the parser and parse a document immediately.

virtual ~DomParser ()
virtual void parse_file (const std::string &filename)
 Parse an XML document from a file.

virtual void parse_memory (const std::string &contents)
 Parse an XML document from a string.

virtual void parse_stream (std::istream &in)
 Parse an XML document from a stream.

 operator bool () const
 Test whether a document has been parsed.

Documentget_document ()
const Documentget_document () const

Protected Member Functions

virtual void parse_context ()
virtual void release_underlying ()

Protected Attributes

Documentdoc_

Detailed Description

XML DOM parser.


Constructor & Destructor Documentation

xmlpp::DomParser::DomParser  ) 
 

xmlpp::DomParser::DomParser const std::string &  filename,
bool  validate = false
[explicit]
 

Instantiate the parser and parse a document immediately.

Exceptions:
exception 
Parameters:
filename The path to the file.
validate Whether the parser should validate the XML.

virtual xmlpp::DomParser::~DomParser  )  [virtual]
 


Member Function Documentation

const Document* xmlpp::DomParser::get_document  )  const
 

Document* xmlpp::DomParser::get_document  ) 
 

xmlpp::DomParser::operator bool  )  const
 

Test whether a document has been parsed.

virtual void xmlpp::DomParser::parse_context  )  [protected, virtual]
 

virtual void xmlpp::DomParser::parse_file const std::string &  filename  )  [virtual]
 

Parse an XML document from a file.

Exceptions:
exception 
Parameters:
filename The path to the file.

Implements xmlpp::Parser.

virtual void xmlpp::DomParser::parse_memory const std::string &  contents  )  [virtual]
 

Parse an XML document from a string.

Exceptions:
exception 
Parameters:
contents The XML document as a string.

Implements xmlpp::Parser.

virtual void xmlpp::DomParser::parse_stream std::istream &  in  )  [virtual]
 

Parse an XML document from a stream.

Exceptions:
exception 
Parameters:
in The stream.

Implements xmlpp::Parser.

virtual void xmlpp::DomParser::release_underlying  )  [protected, virtual]
 

Reimplemented from xmlpp::Parser.


Member Data Documentation

Document* xmlpp::DomParser::doc_ [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed May 5 22:52:44 2004 for libxml++ by doxygen 1.3.5