xmlpp::Parser Class Reference

XML parser. More...

#include <libxml++/parsers/parser.h>

Inheritance diagram for xmlpp::Parser:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void set_validate (bool val=true)
 By default, the parser will not validate the XML file.
virtual bool get_validate () const
 See set_validate().
virtual void set_substitute_entities (bool val=true)
 Set whether the parser will automatically substitute entity references with the text of the entities' definitions.
virtual bool get_substitute_entities () const
 See set_substitute_entities().
virtual void parse_file (const Glib::ustring& filename)=0
 Parse an XML document from a file.
virtual void parse_memory (const Glib::ustring& contents)=0
 Parse an XML document from a string.
virtual void parse_stream (std::istream& in)=0
 Parse an XML document from a stream.


Detailed Description

XML parser.

Member Function Documentation

virtual bool xmlpp::Parser::get_substitute_entities (  )  const [virtual]

See set_substitute_entities().

Returns:
Whether entities will be substituted during parsing.

virtual bool xmlpp::Parser::get_validate (  )  const [virtual]

See set_validate().

Returns:
Whether the parser will validate the XML file.

virtual void xmlpp::Parser::parse_file ( const Glib::ustring filename  )  [pure virtual]

Parse an XML document from a file.

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

Implemented in xmlpp::SaxParser, and xmlpp::DomParser.

virtual void xmlpp::Parser::parse_memory ( const Glib::ustring contents  )  [pure virtual]

Parse an XML document from a string.

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

Implemented in xmlpp::SaxParser, and xmlpp::DomParser.

virtual void xmlpp::Parser::parse_stream ( std::istream &  in  )  [pure virtual]

Parse an XML document from a stream.

Exceptions:
exception 
Parameters:
in The stream.

Implemented in xmlpp::SaxParser, and xmlpp::DomParser.

virtual void xmlpp::Parser::set_substitute_entities ( bool  val = true  )  [virtual]

Set whether the parser will automatically substitute entity references with the text of the entities' definitions.

For instance, this affects the text returned by ContentNode::get_content(). By default, the parser will not substitute entities, so that you do not lose the entity reference information.

Parameters:
val Whether entities will be substitued.

virtual void xmlpp::Parser::set_validate ( bool  val = true  )  [virtual]

By default, the parser will not validate the XML file.

Parameters:
val Whether the document should be validated.


Generated on Fri Apr 16 13:26:12 2010 for libxml++ by  doxygen 1.5.8