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.
void fill_ds_info (DOMNode *n, DSInfo *ds_info)
 Fills a DSInfo object.
void fill_key_data (DOMNode *n, KeyData *keyData)
 Fills a KeyData object.
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

XercesDOMParser * _parser
 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_ds_info ( DOMNode *  n,
DSInfo ds_info 
) [protected]

Fills a DSInfo object.

Parameters:
n reference to a node of the document tree
ds_info reference to a DSInfo object
void DomParserCommon::fill_key_data ( DOMNode *  n,
KeyData keyData 
) [protected]

Fills a KeyData object.

Parameters:
n reference to a node of the document tree
keyData reference to a KeyData object
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 Wed Aug 11 16:56:45 2010 for libepp_nicbr by  doxygen 1.6.3