DomParserCommon Class Reference

EPP DomParser Class. More...

#include <DomParserCommon.H>

Inheritance diagram for DomParserCommon:

DomParser List of all members.

Public Member Functions

 DomParserCommon ()
 Constructor.
 ~DomParserCommon ()
 Destructor.
void enable_validation (const string &schemas_dir=SCHEMASDIR)
 Enable Validation.
void disable_validation ()
 Disable Validation.

Static Public Member Functions

static string str_transcode (const XMLCh *const to_transcode)
 Transcodes a XMLCh to string.

Protected Member Functions

DOMNode * parse (const string &xml_payload)
 Do the actual parsing of the XML document.
void fill_postal_info (DOMNode *n, PostalInfo *postal_info)
 Fills a Postal Info struct.
map< string, string, less<
string > > 
get_children_simple (DOMNode *n)
 Fills a map of children names with associated content text.
map< string, string, less<
string > > 
get_attributes (DOMNode *n)
 Fills a map of attributes and associated values.

Protected Attributes

DOMBuilder * _builder
 Object for parsing XML documents.
DomErrorHandler _error_handler
 DOM error handler.

Detailed Description

EPP DomParser Class.


Member Function Documentation

void DomParserCommon::enable_validation const string &  schemas_dir = SCHEMASDIR  ) 
 

Enable Validation.

Parameters:
schemas_dir Path to the schemas directory

void DomParserCommon::fill_postal_info DOMNode *  n,
PostalInfo postal_info
[protected]
 

Fills a Postal Info struct.

Parameters:
n Pointer to a node of the document tree
postal_info Pointer to a postal info struct

map< string, string, less<string> > DomParserCommon::get_attributes DOMNode *  n  )  [protected]
 

Fills a map of attributes and associated values.

Parameters:
n Pointer to a node of the document tree
Returns:
map of attributes and associated values

map< string, string, less<string> > DomParserCommon::get_children_simple DOMNode *  n  )  [protected]
 

Fills a map of children names with associated content text.

Parameters:
n Pointer to a node of the document tree
Returns:
map of children names with associated content text

DOMNode* DomParserCommon::parse const string &  xml_payload  )  [protected]
 

Do the actual parsing of the XML document.

Parameters:
xml_payload XML to be parsed
Returns:
Pointer to the root of the document tree

static string DomParserCommon::str_transcode const XMLCh *const   to_transcode  )  [static]
 

Transcodes a XMLCh to string.

Parameters:
to_transcode String to be transcoded
Returns:
Transcoded string


The documentation for this class was generated from the following file:
Generated on Thu Jun 8 17:40:01 2006 for libepp_nicbr by  doxygen 1.4.6