blob: 9008e1e6c1515ea690acb7dcf855527cae2dd197 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// file : examples/cxx/tree/secure/secure-dom-parser.cxx
// copyright : not copyrighted - public domain
#include "secure-dom-parser.hxx"
#include <xercesc/util/XMLException.hpp>
#include <xercesc/util/XMLExceptMsgs.hpp>
using namespace xercesc;
void SecureDOMParser::
doctypeDecl (const DTDElementDecl& e,
const XMLCh* const pub_id,
const XMLCh* const sys_id,
const bool hasi,
const bool hase)
{
if (hasi || hase)
ThrowXMLwithMemMgr(RuntimeException,
XMLExcepts::Gen_NoDTDValidator,
fMemoryManager);
DOMLSParserImpl::doctypeDecl (e, pub_id, sys_id, hasi, hase);
}
|