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

xmlutils Namespace Reference


Functions

DOMElement * castNode2Element (DOMNode *node)
const DOMElement * castNode2Element (const DOMNode *node)
string safeXMLChToString (const XMLCh *src)
string safeGetAttribute (const DOMNode *node, const string &attr)
DOMBuilder * getParser ()
DOMElement * findElement (DOMElement *root, const string elementName, const string &attribute, const string &value)
DOMElement * findElementWithNumericAttr (DOMElement *root, const string elementName, const string &attribute, long value)
string getNodeText (DOMNode *elem)
int getNumberFromXmlAttr (DOMElement *element, const string field, int base)
 DECLARE_EXCEPTION (XmlUtilsException)
 DECLARE_EXCEPTION_EX (NotFound, xmlutils, XmlUtilsException)
 DECLARE_EXCEPTION_EX (Invalid, xmlutils, XmlUtilsException)
 DEFINE_EXCEPTION_EX (NotFoundImpl, xmlutils, NotFound)
 DEFINE_EXCEPTION_EX (InvalidImpl, xmlutils, Invalid)
XERCES_CPP_NAMESPACE_QUALIFIER
DOMElement * 
castNode2Element (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
const XERCES_CPP_NAMESPACE_QUALIFIER
DOMElement * 
castNode2Element (const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
std::string safeGetAttribute (const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node, const std::string &attr)
XERCES_CPP_NAMESPACE_QUALIFIER
DOMElement * 
findElement (XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *root, const std::string elementName, const std::string &attribute, const std::string &value)
XERCES_CPP_NAMESPACE_QUALIFIER
DOMElement * 
findElementWithNumericAttr (XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *root, const std::string elementName, const std::string &attribute, long value)
std::string getNodeText (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *elem)
int getNumberFromXmlAttr (XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *element, const std::string field, int base)
void suppressLibxmlWarnings (void *ctx, const char *msg,...)
string safeGetAttribute (const xmlNode *node, const string &attr)
xmlNodePtr findElement (xmlNodePtr root, const string elementName, const string &attribute, const string &value)
xmlNodePtr findElement (xmlNodePtr root, const string elementName, const string &attribute, long value)
xmlNodePtr findElementWithNumericAttr (xmlNodePtr root, const string elementName, const string &attribute, long value)
string getNodeText (xmlNodePtr elem)
int getNumberFromXmlAttr (xmlNodePtr element, const string field, int base)
std::string safeGetAttribute (const xmlNode *node, const std::string &attr)
xmlNodePtr findElement (xmlNodePtr root, const std::string elementName, const std::string &attribute, const std::string &value)
xmlNodePtr findElementWithNumericAttr (xmlNodePtr root, const std::string elementName, const std::string &attribute, long value)


Function Documentation

const XERCES_CPP_NAMESPACE_QUALIFIER DOMElement* castNode2Element const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  node  ) 
 

XERCES_CPP_NAMESPACE_QUALIFIER DOMElement* castNode2Element XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  node  ) 
 

const DOMElement* castNode2Element const DOMNode *  node  ) 
 

Definition at line 54 of file xml_libxerces/XmlUtils.cpp.

References DOMElement.

DOMElement* castNode2Element DOMNode *  node  ) 
 

Definition at line 37 of file xml_libxerces/XmlUtils.cpp.

References DOMElement.

Referenced by findElement(), findElementWithNumericAttr(), and safeGetAttribute().

DECLARE_EXCEPTION XmlUtilsException   ) 
 

DECLARE_EXCEPTION_EX Invalid  ,
xmlutils  ,
XmlUtilsException 
 

DECLARE_EXCEPTION_EX NotFound  ,
xmlutils  ,
XmlUtilsException 
 

DEFINE_EXCEPTION_EX InvalidImpl  ,
xmlutils  ,
Invalid 
 

DEFINE_EXCEPTION_EX NotFoundImpl  ,
xmlutils  ,
NotFound 
 

xmlNodePtr findElement xmlNodePtr  root,
const std::string  elementName,
const std::string &  attribute,
const std::string &  value
 

xmlNodePtr findElement xmlNodePtr  root,
const string  elementName,
const string &  attribute,
long  value
 

Definition at line 115 of file xml_libxml2/XmlUtils.cpp.

References DCERR, findElement(), and safeGetAttribute().

xmlNodePtr findElement xmlNodePtr  root,
const string  elementName,
const string &  attribute,
const string &  value
 

Definition at line 62 of file xml_libxml2/XmlUtils.cpp.

References DCERR, findElement(), and safeGetAttribute().

XERCES_CPP_NAMESPACE_QUALIFIER DOMElement* findElement XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *  root,
const std::string  elementName,
const std::string &  attribute,
const std::string &  value
 

DOMElement* findElement DOMElement *  root,
const string  elementName,
const string &  attribute,
const string &  value
 

Definition at line 118 of file xml_libxerces/XmlUtils.cpp.

References castNode2Element(), DOMElement, DOMNode, safeGetAttribute(), and X.

Referenced by testPlatform::checkSkipTest(), findElement(), findElementWithNumericAttr(), smbios::getBits_FromItem(), smbios::getData_UsingXml(), smbios::getString_FromItem(), smbios::getStringForType(), testRbu::getTestInputString(), testPlatform::getTestInputString(), smbios::getTypeForString(), testPlatform::testConstructionOffset1(), testPlatform::testConstructionOffset2(), testPlatform::testOutOfBounds(), and testPlatform::testVariousAccessors().

xmlNodePtr findElementWithNumericAttr xmlNodePtr  root,
const std::string  elementName,
const std::string &  attribute,
long  value
 

xmlNodePtr findElementWithNumericAttr xmlNodePtr  root,
const string  elementName,
const string &  attribute,
long  value
 

Definition at line 164 of file xml_libxml2/XmlUtils.cpp.

References findElement().

XERCES_CPP_NAMESPACE_QUALIFIER DOMElement* findElementWithNumericAttr XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *  root,
const std::string  elementName,
const std::string &  attribute,
long  value
 

DOMElement* findElementWithNumericAttr DOMElement *  root,
const string  elementName,
const string &  attribute,
long  value
 

Definition at line 157 of file xml_libxerces/XmlUtils.cpp.

References castNode2Element(), DOMElement, DOMNode, safeGetAttribute(), and X.

Referenced by smbios::getBits_FromItem(), smbios::getData_UsingXml(), smbios::getString_FromItem(), and smbios::getStringForType().

std::string getNodeText xmlNodePtr  elem  ) 
 

Definition at line 169 of file xml_libxml2/XmlUtils.cpp.

std::string getNodeText XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  elem  ) 
 

string getNodeText DOMNode *  elem  ) 
 

Definition at line 195 of file xml_libxerces/XmlUtils.cpp.

References DOMNode, and safeXMLChToString().

Referenced by testRbu::getTestInputString(), testPlatform::getTestInputString(), and testPlatform::testVariousAccessors().

int getNumberFromXmlAttr xmlNodePtr  element,
const string  field,
int  base
 

Definition at line 180 of file xml_libxml2/XmlUtils.cpp.

References safeGetAttribute().

int getNumberFromXmlAttr XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *  element,
const std::string  field,
int  base
 

int getNumberFromXmlAttr DOMElement *  element,
const string  field,
int  base
 

Definition at line 215 of file xml_libxerces/XmlUtils.cpp.

References safeGetAttribute().

Referenced by smbios::getBits_FromItem(), smbios::getData_UsingXml(), and smbios::getString_FromItem().

DOMBuilder * getParser  ) 
 

Definition at line 97 of file xml_libxerces/XmlUtils.cpp.

References DOMBuilder.

Referenced by testRbu::setUp(), testPlatform::setUp(), and SmbiosTableXml::setXmlFilePath().

std::string safeGetAttribute const xmlNode *  node,
const std::string &  attr
 

string safeGetAttribute const xmlNode *  node,
const string &  attr
 

Definition at line 48 of file xml_libxml2/XmlUtils.cpp.

std::string safeGetAttribute const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  node,
const std::string &  attr
 

string safeGetAttribute const DOMNode *  node,
const string &  attr
 

Definition at line 84 of file xml_libxerces/XmlUtils.cpp.

References castNode2Element(), DOMElement, safeXMLChToString(), and X.

Referenced by findElement(), findElementWithNumericAttr(), getNumberFromXmlAttr(), smbios::getStringForType(), smbios::getTypeForString(), smbios::printStructureField(), and smbios::verifyElementAttr().

std::string safeXMLChToString const XMLCh *  src  ) 
 

Definition at line 71 of file xml_libxerces/XmlUtils.cpp.

Referenced by getNodeText(), safeGetAttribute(), and smbios::validateSmbiosXmlDoc().

void suppressLibxmlWarnings void *  ctx,
const char *  msg,
... 
 

Definition at line 41 of file xml_libxml2/XmlUtils.cpp.

References UNREFERENCED_PARAMETER.


Generated on Wed Apr 11 16:25:12 2007 for SMBIOS Library by doxygen 1.3.5