void NsSAX2Reader::notationDecl(const XMLNotationDecl& notDecl, const_bool isIgnored) { if (fReadingIntSubset) { //add thes chars to internalSubset variable fSubset.append(chOpenAngle); fSubset.append(chBang); fSubset.append(XMLUni::fgNotationString); fSubset.append(chSpace); fSubset.append(notDecl.getName()); const XMLCh* id = notDecl.getPublicId(); if (id != 0) { fSubset.append(chSpace); fSubset.append(XMLUni::fgPubIDString); fSubset.append(chSpace); fSubset.append(chDoubleQuote); fSubset.append(id); fSubset.append(chDoubleQuote); } id = notDecl.getSystemId(); if (id != 0) { fSubset.append(chSpace); fSubset.append(XMLUni::fgSysIDString); fSubset.append(chSpace); fSubset.append(chDoubleQuote); fSubset.append(id); fSubset.append(chDoubleQuote); } fSubset.append(chCloseAngle); } }
void SAXParser::notationDecl( const XMLNotationDecl& notDecl , const bool isIgnored) { if (fDTDHandler && !isIgnored) { fDTDHandler->notationDecl ( notDecl.getName() , notDecl.getPublicId() , notDecl.getSystemId() ); } }
void TestParser::notationDecl( const XMLNotationDecl& notDecl , const bool isIgnored) { if (fOutputType == OutputType_Debug) { XERCES_STD_QUALIFIER cout << "Got NOTATIONDECL:\n " << "Name: " << StrX(notDecl.getName()) << XERCES_STD_QUALIFIER endl; } else if (fOutputType != OutputType_None) { if (fInExtSubset) return; if (fIntDTDOutput) { XERCES_STD_QUALIFIER cout << "<!NOTATION " << StrX(notDecl.getName()) << " "; if (!XMLString::stringLen(notDecl.getSystemId())) XERCES_STD_QUALIFIER cout << "PUBLIC "; else XERCES_STD_QUALIFIER cout << "SYSTEM "; if (XMLString::stringLen(notDecl.getPublicId())) XERCES_STD_QUALIFIER cout << "\"" << StrX(notDecl.getPublicId()) << '"'; if (XMLString::stringLen(notDecl.getSystemId())) XERCES_STD_QUALIFIER cout << " \"" << StrX(notDecl.getSystemId()) << '"'; XERCES_STD_QUALIFIER cout << ">"; } } }