#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) |
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 }