libepp_nicbr
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DomParserCommon Class Reference

EPP DomParser Class. More...

#include <DomParserCommon.H>

Inheritance diagram for DomParserCommon:
DomParser

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

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_dirPath to the schemas directory
void DomParserCommon::fill_ds_info ( DOMNode *  n,
DSInfo ds_info 
)
protected

Fills a DSInfo object.

Parameters
nreference to a node of the document tree
ds_inforeference to a DSInfo object
void DomParserCommon::fill_key_data ( DOMNode *  n,
KeyData keyData 
)
protected

Fills a KeyData object.

Parameters
nreference to a node of the document tree
keyDatareference to a KeyData object
void DomParserCommon::fill_postal_info ( DOMNode *  n,
PostalInfo postal_info 
)
protected

Fills a Postal Info struct.

Parameters
nPointer to a node of the document tree
postal_infoPointer 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
nPointer 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
nPointer 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_payloadXML 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_transcodeString to be transcoded
Returns
Transcoded string

The documentation for this class was generated from the following file: