File: Poco.XML.DTDHandler.html

package info (click to toggle)
poco-doc 1.3.6-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 10,076 kB
  • ctags: 9,611
  • sloc: makefile: 31
file content (64 lines) | stat: -rw-r--r-- 6,634 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::XML::DTDHandler</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.XML.html" class="namespace">Poco::XML</a></h1>
<h1 class="symbol">class DTDHandler</h1>
</div>
<div class="body">
<p>
<b>Library:</b> XML<br />
<b>Package:</b> SAX<br />
<b>Header:</b> Poco/SAX/DTDHandler.h</p>
<h2>Description</h2>
<div class="description">
<p>If a SAX application needs information about notations and unparsed entities,  then the application implements this interface and registers an instance with the  SAX parser using the parser's setDTDHandler method. The parser uses the instance  to report notation and unparsed entity declarations to the application. </p>
<p>Note that this interface includes only those DTD events that the <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> recommendation  requires processors to report: notation and unparsed entity declarations. </p>
<p>The SAX parser may report these events in any order, regardless of the order in  which the notations and unparsed entities were declared; however, all DTD events  must be reported after the document handler's startDocument event, and before the first  startElement event. (If the <a href="Poco.XML.LexicalHandler.html" title="class Poco::XML::LexicalHandler">LexicalHandler</a> is used, these events must also be reported before the endDTD event.) </p>
<p>It is up to the application to store the information for future use (perhaps in a hash table or  object tree). If the application encounters attributes of type &quot;NOTATION&quot;, &quot;ENTITY&quot;, or &quot;ENTITIES&quot;,  it can use the information that it obtained through this interface to find the entity and/or notation corresponding with the attribute value. </p>
</div>
<h2>Inheritance</h2>
<p><b>Known Derived Classes: </b><a href="Poco.XML.DOMBuilder.html" title="class Poco::XML::DOMBuilder">DOMBuilder</a>, <a href="Poco.XML.DefaultHandler.html" title="class Poco::XML::DefaultHandler">DefaultHandler</a>, <a href="Poco.XML.XMLFilterImpl.html" title="class Poco::XML::XMLFilterImpl">XMLFilterImpl</a>, <a href="Poco.XML.WhitespaceFilter.html" title="class Poco::XML::WhitespaceFilter">WhitespaceFilter</a>, <a href="Poco.XML.XMLWriter.html" title="class Poco::XML::XMLWriter">XMLWriter</a></p>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.XML.DTDHandler.html#18885" title="Poco::XML::DTDHandler::notationDecl()">notationDecl</a>, <a href="Poco.XML.DTDHandler.html#18889" title="Poco::XML::DTDHandler::unparsedEntityDecl()">unparsedEntityDecl</a></p>
<h2>Destructor</h2>
<h3><a name="18894">~DTDHandler</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual ~<a href="Poco.XML.DTDHandler.html" title="class Poco::XML::DTDHandler">DTDHandler</a>();</p>
<div class="description">
<p></p>
</div>
<h2>Member Functions</h2>
<h3><a name="18885">notationDecl</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual void notationDecl(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; name,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> * publicId,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> * systemId<br />) = 0;</p>
<div class="description">
<p>Receive notification of a notation declaration event. </p>
<p>It is up to the application to record the notation for later reference,  if necessary; notations may appear as attribute values and in unparsed  entity declarations, and are sometime used with processing instruction  target names. </p>
<p>At least one of publicId and systemId must be non-null. If a system identifier  is present, and it is a URL, the SAX parser must resolve it fully before passing  it to the application through this event. </p>
<p>There is no guarantee that the notation declaration will be reported before any  unparsed entities that use it. </p>
<p>Note that publicId and systemId maybe null, therefore we pass a pointer rather than a reference. </p>
</div>
<h3><a name="18889">unparsedEntityDecl</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">virtual void unparsedEntityDecl(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; name,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> * publicId,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; systemId,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; notationName<br />) = 0;</p>
<div class="description">
<p>Receive notification of an unparsed entity declaration event. </p>
<p>Note that the notation name corresponds to a notation reported by the  notationDecl event. It is up to the application to record the entity for  later reference, if necessary; unparsed entities may appear as attribute values. </p>
<p>If the system identifier is a URL, the parser must resolve it fully before  passing it to the application. </p>
<p>Note that publicId maybe null, therefore we pass a pointer rather than a reference. </p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>