#include <iso_xml_tools.h>
Collaboration diagram for iso::xml::XMLTools:
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 XMLTools & | get () |
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 XMLTools * | sXMLTools |
singleton instance |
for xml parsing
Created by Daniel Bisig on 8/19/06. Copyright 2006 Daniel Bisig All rights reserved.
XMLTools::XMLTools | ( | ) | throw (XMLException) [protected] |
default constructor
XMLTools::~XMLTools | ( | ) | throw (XMLException) [protected] |
destructor
XMLTools & XMLTools::get | ( | ) | [static] |
get singleton instance
void XMLTools::destroy | ( | ) | [static] |
destroy singleton instance
xercesc::DOMElement * XMLTools::createElement | ( | const base::String & | pElementName, | |
xercesc::DOMDocument * | pDocument | |||
) |
create DOM element
pElementName | tag name of element | |
pDocument | DOM document |
bool XMLTools::containsAttribute | ( | xercesc::DOMElement * | pElement, | |
const base::String & | pAttribute | |||
) |
check whether DOM element contains attribute
pElement | DOM element | |
pAttribute | attribute name |
void XMLTools::addAttribute | ( | xercesc::DOMElement * | pElement, | |
const base::String & | pAttribute, | |||
const base::String & | pValue | |||
) |
add attribute to DOM element
pElement | DOM element | |
pAttribute | attribute name | |
pValue | atribute value |
xercesc::XercesDOMParser * XMLTools::load | ( | base::String | pFile | ) | throw (XMLException) |
create DOM parser from file
pFile | file name |
Exception | parse error or DOM exception |
XMLTools * XMLTools::sXMLTools [static, protected] |
singleton instance