iso::xml::XMLTools Class Reference

helper functions for xml parsing More...

#include <iso_xml_tools.h>

Collaboration diagram for iso::xml::XMLTools:

Collaboration graph
[legend]
List of all members.

Public Member Functions

xercesc::DOMElement * createElement (const base::String &pElementName, xercesc::DOMDocument *pDocument)
 create DOM element
bool containsAttribute (xercesc::DOMElement *pElement, const base::String &pAttribute)
 check whether DOM element contains attribute
void addAttribute (xercesc::DOMElement *pElement, const base::String &pAttribute, const base::String &pValue)
 add attribute to DOM element
xercesc::XercesDOMParser * load (base::String pFile) throw (XMLException)
 create DOM parser from file

Static Public Member Functions

static XMLToolsget ()
 get singleton instance
static void destroy ()
 destroy singleton instance

Protected Member Functions

 XMLTools () throw (XMLException)
 default constructor
 ~XMLTools () throw (XMLException)
 destructor

Static Protected Attributes

static XMLToolssXMLTools
 singleton instance

Detailed Description

helper functions for xml parsing

for xml parsing

Created by Daniel Bisig on 8/19/06. Copyright 2006 Daniel Bisig All rights reserved.


Constructor & Destructor Documentation

XMLTools::XMLTools (  )  throw (XMLException) [protected]

default constructor

XMLTools::~XMLTools (  )  throw (XMLException) [protected]

destructor


Member Function Documentation

XMLTools & XMLTools::get (  )  [static]

get singleton instance

Returns:
singleton instance

void XMLTools::destroy (  )  [static]

destroy singleton instance

xercesc::DOMElement * XMLTools::createElement ( const base::String &  pElementName,
xercesc::DOMDocument *  pDocument 
)

create DOM element

Parameters:
pElementName tag name of element
pDocument DOM document
Returns:
DOM element

bool XMLTools::containsAttribute ( xercesc::DOMElement *  pElement,
const base::String &  pAttribute 
)

check whether DOM element contains attribute

Parameters:
pElement DOM element
pAttribute attribute name
Returns:
true, if attribute is present in attribute list of DOM element, false otherwise

void XMLTools::addAttribute ( xercesc::DOMElement *  pElement,
const base::String &  pAttribute,
const base::String &  pValue 
)

add attribute to DOM element

Parameters:
pElement DOM element
pAttribute attribute name
pValue atribute value

xercesc::XercesDOMParser * XMLTools::load ( base::String  pFile  )  throw (XMLException)

create DOM parser from file

Parameters:
pFile file name
Returns:
DOM parser
Exceptions:
Exception parse error or DOM exception


Member Data Documentation

XMLTools * XMLTools::sXMLTools [static, protected]

singleton instance


The documentation for this class was generated from the following files:
Generated on Thu Jul 8 12:57:42 2010 for iso_xml by  doxygen 1.5.1