Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

xercesDomUtil.cc File Reference

Go to the history log for this file.

#include <xercesDomUtil.h>
#include <XmlTempString.h>
#include <parseutil.h>
#include <Exceptions.h>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/sax/HandlerBase.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/dom/DOMErrorHandler.hpp>
#include <xercesc/framework/MemBufInputSource.hpp>
#include <xercesc/framework/Wrapper4InputSource.hpp>
#include <xercesc/parsers/AbstractDOMParser.hpp>
#include <xercesc/framework/MemBufFormatTarget.hpp>
#include <sstream>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <iostream>

Classes

struct  AuroraDOMErrorHandler

Functions

void writeDomDocToFile (const DOMDocument &doc, string filename) throw (exception)
DOMDocument * readDomDocFromFile (DOMImplementationLS &impl, string filename) throw (exception)
DOMImplementationLS * getDomImplementationLs () throw (exception)
DOMImplementation * getDomImplementation () throw (exception)
DOMElement * createDomElement (DOMDocument &docOwner, string elementName) throw (exception)
DOMElement * getDomChildByKeyTag (const DOMElement &parent, string childTagName) throw (exception)
bool parseXmlStringAsBool (const XMLCh *pXml) throw (exception)
int parseXmlStringAsInt (const XMLCh *pXml) throw (exception)
unsigned int parseXmlStringAsUInt (const XMLCh *pXml) throw (exception)
unsigned long parseXmlStringAsLong (const XMLCh *pXml) throw (exception)
unsigned long parseXmlStringAsULong (const XMLCh *pXml) throw (exception)
unsigned long long parseXmlStringAsULongLong (const XMLCh *pXml) throw (exception)
double parseXmlStringAsDouble (const XMLCh *pXml) throw (exception)
void saveIntVectorToXml (const vector< int > &v, DOMDocument &doc, DOMElement &elem) throw (exception)
void loadIntVectorFromXml (vector< int > &v, DOMElement &elem) throw (exception)
void saveTimevalToXml (const timeval &tv, DOMDocument &doc, DOMElement &elem) throw (exception)
void loadTimevalFromXml (timeval &tv, DOMElement &elem) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, bool newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, int newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, unsigned int newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, long newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, unsigned long newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, unsigned long long newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, string newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, double newValue) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, bool &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, int &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, unsigned int &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, long &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, unsigned long &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, unsigned long long &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, string &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, double &value) throw (exception)
bool isDomAttributePresent (const DOMElement &elem, string attributeName) throw (exception)
ptr< DOMDocument > parseXmlFile (string filename) throw (AuroraBadXmlException)
ptr< DOMDocument > parseXmlString (string data) throw (AuroraBadXmlException)
ptr< DOMDocument > parseXmlString (const void *data, unsigned int length) throw (AuroraBadXmlException)
string xmlAttribute (const DOMElement *element, string name, XmlAttrReq req) throw (AuroraBadEntityException)
string xmlAttribute (const DOMElement *element, string name, string def) throw (AuroraBadEntityException)
void xmlExpectTag (const DOMElement *element, string required_name) throw (AuroraBadEntityException)
string xmlEscape (string in)
DOMElement * xmlOnlyTag (const DOMElement *parent, bool required) throw (AuroraException)
DOMElement * xmlOnlyTag (const DOMElement *parent, string tag, bool required) throw (AuroraException)
void xmlChildElements (vector< DOMElement * > &children, const DOMElement *parent, string tag)
string xmlSerialize (const DOMNode *node)

Variables

 BOREALIS_NAMESPACE_BEGIN
 BOREALIS_NAMESPACE_END

Function Documentation

DOMElement* createDomElement DOMDocument &  docOwner,
string  elementName
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
double &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
string &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
unsigned long long &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
unsigned long &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
long &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
unsigned int &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
int &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
bool &  value
throw (exception)
 

DOMElement* getDomChildByKeyTag const DOMElement &  parent,
string  childTagName
throw (exception)
 

DOMImplementation* getDomImplementation  )  throw (exception)
 

DOMImplementationLS* getDomImplementationLs  )  throw (exception)
 

bool isDomAttributePresent const DOMElement &  elem,
string  attributeName
throw (exception)
 

void loadIntVectorFromXml vector< int > &  v,
DOMElement &  elem
throw (exception)
 

void loadTimevalFromXml timeval &  tv,
DOMElement &  elem
throw (exception)
 

ptr<DOMDocument> parseXmlFile string  filename  )  throw (AuroraBadXmlException)
 

ptr<DOMDocument> parseXmlString const void *  data,
unsigned int  length
throw (AuroraBadXmlException)
 

ptr<DOMDocument> parseXmlString string  data  )  throw (AuroraBadXmlException)
 

bool parseXmlStringAsBool const XMLCh *  pXml  )  throw (exception)
 

double parseXmlStringAsDouble const XMLCh *  pXml  )  throw (exception)
 

int parseXmlStringAsInt const XMLCh *  pXml  )  throw (exception)
 

unsigned long parseXmlStringAsLong const XMLCh *  pXml  )  throw (exception)
 

unsigned int parseXmlStringAsUInt const XMLCh *  pXml  )  throw (exception)
 

unsigned long parseXmlStringAsULong const XMLCh *  pXml  )  throw (exception)
 

unsigned long long parseXmlStringAsULongLong const XMLCh *  pXml  )  throw (exception)
 

DOMDocument* readDomDocFromFile DOMImplementationLS &  impl,
string  filename
throw (exception)
 

void saveIntVectorToXml const vector< int > &  v,
DOMDocument &  doc,
DOMElement &  elem
throw (exception)
 

void saveTimevalToXml const timeval &  tv,
DOMDocument &  doc,
DOMElement &  elem
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
double  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
string  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
unsigned long long  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
unsigned long  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
long  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
unsigned int  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
int  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
bool  newValue
throw (exception)
 

void writeDomDocToFile const DOMDocument &  doc,
string  filename
throw (exception)
 

string xmlAttribute const DOMElement *  element,
string  name,
string  def
throw (AuroraBadEntityException)
 

string xmlAttribute const DOMElement *  element,
string  name,
XmlAttrReq  req
throw (AuroraBadEntityException)
 

void xmlChildElements vector< DOMElement * > &  children,
const DOMElement *  parent,
string  tag
 

string xmlEscape string  in  ) 
 

void xmlExpectTag const DOMElement *  element,
string  required_name
throw (AuroraBadEntityException)
 

DOMElement* xmlOnlyTag const DOMElement *  parent,
string  tag,
bool  required
throw (AuroraException)
 

DOMElement* xmlOnlyTag const DOMElement *  parent,
bool  required
throw (AuroraException)
 

string xmlSerialize const DOMNode *  node  ) 
 


Variable Documentation

BOREALIS_NAMESPACE_BEGIN
 

BOREALIS_NAMESPACE_END
 


Generated on Fri Nov 12 15:15:22 2004 for Borealis by doxygen 1.3.8