#include "smbios/compat.h"
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/util/XMLUni.hpp>
#include <xercesc/framework/MemBufInputSource.hpp>
#include <xercesc/framework/Wrapper4InputSource.hpp>
#include "ExceptionImpl.h"
Go to the source code of this file.
Namespaces | |
namespace | xmlutils |
Defines | |
#define | X(x) XMLString::transcode(x) |
#define | xmlDocGetRootElement(doc) doc->getDocumentElement() |
#define | SETUP_XML_NAMESPACE XERCES_CPP_NAMESPACE_USE |
#define | XML_NAMESPACE XERCES_CPP_NAMESPACE_QUALIFIER |
#define | CHECK_VERSION_COMPAT |
#define | InitXML XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::Initialize |
#define | FiniXML XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::Terminate |
#define | xmlFreeParser(parser) do{parser->resetDocumentPool(); parser->release();parser=0;}while(0) |
#define | xmlFreeDoc(doc) do{doc=0;}while(0) |
#define | compatXmlReadFile(parser, doc, name) do{try{doc = parser->parseURI(name);}catch( const std::exception & ){}}while(0) |
#define | compatXmlReadMemory(parser, doc, str, len) |
|
Definition at line 41 of file xml_libxerces/XmlUtils.h. |
|
Definition at line 47 of file xml_libxerces/XmlUtils.h. Referenced by smbios::getSmbiosXmlDoc(), testRbu::setUp(), and testPlatform::setUp(). |
|
Value: do{ \ try \ { \ MemBufInputSource* memBufIs = new MemBufInputSource( \ reinterpret_cast<const XMLByte*>(stdXml), \ len, \ "standard_xml", \ false ); \ DOMInputSource* Is = new Wrapper4InputSource( memBufIs ); \ doc = parser->parse( *Is ); \ delete Is; \ } \ catch (const std::exception &)\ {} \ }while(0) Definition at line 52 of file xml_libxerces/XmlUtils.h. Referenced by smbios::getSmbiosXmlDoc(). |
|
Definition at line 43 of file xml_libxerces/XmlUtils.h. Referenced by testRbu::tearDown(), testPlatform::tearDown(), and SmbiosTableXml::~SmbiosTableXml(). |
|
Definition at line 42 of file xml_libxerces/XmlUtils.h. Referenced by testRbu::setUp(), testPlatform::setUp(), and SmbiosTableXml::setXmlFilePath(). |
|
Definition at line 39 of file xml_libxerces/XmlUtils.h. |
|
Definition at line 36 of file xml_libxerces/XmlUtils.h. |
|
Definition at line 40 of file xml_libxerces/XmlUtils.h. |
|
|
Definition at line 45 of file xml_libxerces/XmlUtils.h. Referenced by SmbiosTableXml::setXmlFilePath(), testRbu::tearDown(), testPlatform::tearDown(), smbios::validateSmbiosXmlDoc(), and SmbiosTableXml::~SmbiosTableXml(). |
|
Definition at line 44 of file xml_libxerces/XmlUtils.h. Referenced by SmbiosTableXml::setXmlFilePath(), testRbu::tearDown(), testPlatform::tearDown(), and SmbiosTableXml::~SmbiosTableXml(). |