/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Calibration/xmlBase/xmlBase-00-00-03/src/XmlParser.cxx File Reference

#include <iostream>
#include "xmlBase/XmlParser.h"
#include "xmlBase/EResolver.h"
#include "xmlBase/Dom.h"
#include "facilities/Util.h"
#include <xercesc/framework/LocalFileInputSource.hpp>
#include <xercesc/framework/MemBufInputSource.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/framework/XMLValidator.hpp>
#include <xercesc/util/PlatformUtils.hpp>

Go to the source code of this file.

Namespaces

namespace  xmlBase

Functions

XERCES_CPP_NAMESPACE_USE bool checkDocType (const DOMDocument *doc, const std::string docType)


Function Documentation

XERCES_CPP_NAMESPACE_USE bool @6::checkDocType ( const DOMDocument *  doc,
const std::string  docType 
) [static]

Definition at line 17 of file XmlParser.cxx.

References release.

Referenced by xmlBase::XmlParser::parse().

00017                                                                       {
00018     bool ret = false;
00019     const DOMDocumentType* typeDecl = doc->getDoctype();
00020     if (typeDecl != 0) {
00021       const XMLCh* name = typeDecl->getName();
00022       XMLCh* transDocType = XMLString::transcode(docType.c_str());
00023       ret = XMLString::equals(name, transDocType);
00024       XMLString::release(&transDocType);
00025 
00026     }
00027     return ret;
00028   }


Generated on Tue Nov 29 23:14:53 2016 for BOSS_7.0.2 by  doxygen 1.4.7