1 | <HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>ContentHandler class Reference</TITLE><link href="XercesApi.css" rel="stylesheet" type="text/css"></HEAD><BODY alink="#ff0000" bgcolor="#ffffff" leftmargin="4" link="#0000ff" marginheight="4" marginwidth="4" text="#000000" topmargin="4" vlink="#0000aa"><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" height="60" rowspan="3" valign="top" width="135"><IMG border="0" height="60" hspace="0" src="../resources/logo.gif" vspace="0" width="135"></TD><TD align="left" colspan="4" height="5" valign="top" width="456"><IMG border="0" height="5" hspace="0" src="../resources/line.gif" vspace="0" width="456"></TD><TD align="left" height="60" rowspan="3" valign="top" width="29"><IMG border="0" height="60" hspace="0" src="../resources/right.gif" vspace="0" width="29"></TD></TR><TR><TD align="left" bgcolor="#0086b2" colspan="4" height="35" valign="top" width="456"><IMG alt="" border="0" height="35" hspace="0" src="../graphics/api-header.jpg" vspace="0" width="456"></TD></TR><TR><TD align="left" height="20" valign="top" width="168"><IMG border="0" height="20" hspace="0" src="../resources/bottom.gif" vspace="0" width="168"></TD><TD align="left" height="20" valign="top" width="96"><A href="http://xml.apache.org/" onMouseOut="rolloverOff('xml');" onMouseOver="rolloverOn('xml');" target="new"><IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" onLoad="rolloverLoad('xml','../resources/button-xml-hi.gif','../resources/button-xml-lo.gif');" src="../resources/button-xml-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.apache.org/" onMouseOut="rolloverOff('asf');" onMouseOver="rolloverOn('asf');" target="new"><IMG alt="http://www.apache.org/" border="0" height="20" hspace="0" name="asf" onLoad="rolloverLoad('asf','../resources/button-asf-hi.gif','../resources/button-asf-lo.gif');" src="../resources/button-asf-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.w3.org/" onMouseOut="rolloverOff('w3c');" onMouseOver="rolloverOn('w3c');" target="new"><IMG alt="http://www.w3.org/" border="0" height="20" hspace="0" name="w3c" onLoad="rolloverLoad('w3c','../resources/button-w3c-hi.gif','../resources/button-w3c-lo.gif');" src="../resources/button-w3c-lo.gif" vspace="0" width="96"></A></TD></TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" valign="top" width="120"><IMG border="0" height="14" hspace="0" src="../resources/join.gif" vspace="0" width="120"><BR>
|
---|
2 | <A href="../../index.html" onMouseOut="rolloverOff('side-ext-2');" onMouseOver="rolloverOn('side-ext-2');"><IMG alt="Home" border="0" height="12" hspace="0" name="side-ext-2" onLoad="rolloverLoad('side-ext-2','../graphics/ext-2-label-2.jpg','../graphics/ext-2-label-3.jpg');" src="../graphics/ext-2-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
3 |
|
---|
4 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
5 |
|
---|
6 | <A href="../index.html" onMouseOut="rolloverOff('side-index');" onMouseOver="rolloverOn('side-index');"><IMG alt="Readme" border="0" height="12" hspace="0" name="side-index" onLoad="rolloverLoad('side-index','../graphics/index-label-2.jpg','../graphics/index-label-3.jpg');" src="../graphics/index-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
7 | <A href="../releases.html" onMouseOut="rolloverOff('side-releases');" onMouseOver="rolloverOn('side-releases');"><IMG alt="Release Info" border="0" height="12" hspace="0" name="side-releases" onLoad="rolloverLoad('side-releases','../graphics/releases-label-2.jpg','../graphics/releases-label-3.jpg');" src="../graphics/releases-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
8 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
9 | <A href="../install.html" onMouseOut="rolloverOff('side-install');" onMouseOver="rolloverOn('side-install');"><IMG alt="Installation" border="0" height="12" hspace="0" name="side-install" onLoad="rolloverLoad('side-install','../graphics/install-label-2.jpg','../graphics/install-label-3.jpg');" src="../graphics/install-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
10 | <A href="http://xml.apache.org/dist/xerces-c/" onMouseOut="rolloverOff('side-ext-18');" onMouseOver="rolloverOn('side-ext-18');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-18" onLoad="rolloverLoad('side-ext-18','../graphics/ext-18-label-2.jpg','../graphics/ext-18-label-3.jpg');" src="../graphics/ext-18-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
11 | <A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build" border="0" height="12" hspace="0" name="side-build" onLoad="rolloverLoad('side-build','../graphics/build-label-2.jpg','../graphics/build-label-3.jpg');" src="../graphics/build-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
12 |
|
---|
13 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
14 | <A href="../faqs.html" onMouseOut="rolloverOff('side-faqs');" onMouseOver="rolloverOn('side-faqs');"><IMG alt="FAQs" border="0" height="12" hspace="0" name="side-faqs" onLoad="rolloverLoad('side-faqs','../graphics/faqs-label-2.jpg','../graphics/faqs-label-3.jpg');" src="../graphics/faqs-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
15 | <A href="../samples.html" onMouseOut="rolloverOff('side-samples');" onMouseOver="rolloverOn('side-samples');"><IMG alt="Samples" border="0" height="12" hspace="0" name="side-samples" onLoad="rolloverLoad('side-samples','../graphics/samples-label-2.jpg','../graphics/samples-label-3.jpg');" src="../graphics/samples-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
16 | <A href="../api.html" onMouseOut="rolloverOff('side-api');" onMouseOver="rolloverOn('side-api');"><IMG alt="API Docs" border="0" height="12" hspace="0" name="side-api" onLoad="rolloverLoad('side-api','../graphics/api-label-2.jpg','../graphics/api-label-3.jpg');" src="../graphics/api-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
17 |
|
---|
18 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
19 | <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-68');" onMouseOver="rolloverOn('side-ext-68');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-68" onLoad="rolloverLoad('side-ext-68','../graphics/ext-68-label-2.jpg','../graphics/ext-68-label-3.jpg');" src="../graphics/ext-68-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
20 |
|
---|
21 | <A href="../program.html" onMouseOut="rolloverOff('side-program');" onMouseOver="rolloverOn('side-program');"><IMG alt="Programming" border="0" height="12" hspace="0" name="side-program" onLoad="rolloverLoad('side-program','../graphics/program-label-2.jpg','../graphics/program-label-3.jpg');" src="../graphics/program-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
22 | <A href="../migrate.html" onMouseOut="rolloverOff('side-migrate');" onMouseOver="rolloverOn('side-migrate');"><IMG alt="Migration Guide" border="0" height="12" hspace="0" name="side-migrate" onLoad="rolloverLoad('side-migrate','../graphics/migrate-label-2.jpg','../graphics/migrate-label-3.jpg');" src="../graphics/migrate-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
23 |
|
---|
24 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
25 |
|
---|
26 | <A href="../feedback.html" onMouseOut="rolloverOff('side-feedback');" onMouseOver="rolloverOn('side-feedback');"><IMG alt="Feedback" border="0" height="12" hspace="0" name="side-feedback" onLoad="rolloverLoad('side-feedback','../graphics/feedback-label-2.jpg','../graphics/feedback-label-3.jpg');" src="../graphics/feedback-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
27 | <A href="../bug-report.html" onMouseOut="rolloverOff('side-bug-report');" onMouseOver="rolloverOn('side-bug-report');"><IMG alt="Bug-Reporting" border="0" height="12" hspace="0" name="side-bug-report" onLoad="rolloverLoad('side-bug-report','../graphics/bug-report-label-2.jpg','../graphics/bug-report-label-3.jpg');" src="../graphics/bug-report-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
28 | <A href="../pdf.html" onMouseOut="rolloverOff('side-pdf');" onMouseOver="rolloverOn('side-pdf');"><IMG alt="PDF Document" border="0" height="12" hspace="0" name="side-pdf" onLoad="rolloverLoad('side-pdf','../graphics/pdf-label-2.jpg','../graphics/pdf-label-3.jpg');" src="../graphics/pdf-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
29 |
|
---|
30 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
31 |
|
---|
32 | <A href="http://xml.apache.org/websrc/cvsweb.cgi/xml-xerces/c/" onMouseOut="rolloverOff('side-ext-100');" onMouseOver="rolloverOn('side-ext-100');"><IMG alt="CVS Repository" border="0" height="12" hspace="0" name="side-ext-100" onLoad="rolloverLoad('side-ext-100','../graphics/ext-100-label-2.jpg','../graphics/ext-100-label-3.jpg');" src="../graphics/ext-100-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
33 |
|
---|
34 | <A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Mail Archive" border="0" height="12" hspace="0" name="side-ext-102" onLoad="rolloverLoad('side-ext-102','../graphics/ext-102-label-2.jpg','../graphics/ext-102-label-3.jpg');" src="../graphics/ext-102-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
35 |
|
---|
36 |
|
---|
37 | <IMG border="0" height="14" hspace="0" src="../resources/close.gif" vspace="0" width="120"><BR></TD><TD align="left" valign="top" width="500"><TABLE border="0" cellpadding="3" cellspacing="0"><TR><TD>
|
---|
38 | <TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#FFFFFF" colspan="2" width="494"><TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="492"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><IMG border="0" height="2" hspace="0" src="../resources/void.gif" vspace="0" width="2"><B>API Docs for SAX and DOM</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#017299" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10"> </TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif">
|
---|
39 |
|
---|
40 | <P>
|
---|
41 | <!-- Generated by Doxygen 1.2.14 -->
|
---|
42 | <center>
|
---|
43 | <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
|
---|
44 | <hr><h1>ContentHandler Class Reference</h1>Receive notification of general document events.
|
---|
45 | <a href="#_details">More...</a>
|
---|
46 | <p>
|
---|
47 | Inheritance diagram for ContentHandler:<p><center><img src="classContentHandler__inherit__graph.gif" border="0" usemap="#ContentHandler__inherit__map" alt="Inheritance graph"></center>
|
---|
48 | <map name="ContentHandler__inherit__map">
|
---|
49 | <area href="classDefaultHandler.html" shape="rect" coords="8,105,107,87" alt="">
|
---|
50 | </map>
|
---|
51 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classContentHandler-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
|
---|
52 | <tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
|
---|
53 | <tr><td colspan="2"><div class="groupHeader">Constructors and Destructor</div></td></tr>
|
---|
54 | <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classContentHandler.html#z530_0">ContentHandler</a> ()</td></tr>
|
---|
55 | <tr><td> </td><td><font size=-1><em>Default constructor.</em> <a href="#z530_0">More...</a><em></em></font><br><br></td></tr>
|
---|
56 | <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classContentHandler.html#z530_1">~ContentHandler</a> ()</td></tr>
|
---|
57 | <tr><td> </td><td><font size=-1><em>Destructor.</em> <a href="#z530_1">More...</a><em></em></font><br><br></td></tr>
|
---|
58 | <tr><td colspan="2"><div class="groupHeader">The virtual document handler interface</div></td></tr>
|
---|
59 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_0">characters</a> (const XMLCh *const chars, const unsigned int length)=0</td></tr>
|
---|
60 | <tr><td> </td><td><font size=-1><em>Receive notification of character data.</em> <a href="#z531_0">More...</a><em></em></font><br><br></td></tr>
|
---|
61 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_1">endDocument</a> ()=0</td></tr>
|
---|
62 | <tr><td> </td><td><font size=-1><em>Receive notification of the end of a document.</em> <a href="#z531_1">More...</a><em></em></font><br><br></td></tr>
|
---|
63 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_2">endElement</a> (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)=0</td></tr>
|
---|
64 | <tr><td> </td><td><font size=-1><em>Receive notification of the end of an element.</em> <a href="#z531_2">More...</a><em></em></font><br><br></td></tr>
|
---|
65 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_3">ignorableWhitespace</a> (const XMLCh *const chars, const unsigned int length)=0</td></tr>
|
---|
66 | <tr><td> </td><td><font size=-1><em>Receive notification of ignorable whitespace in element content.</em> <a href="#z531_3">More...</a><em></em></font><br><br></td></tr>
|
---|
67 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_4">processingInstruction</a> (const XMLCh *const target, const XMLCh *const data)=0</td></tr>
|
---|
68 | <tr><td> </td><td><font size=-1><em>Receive notification of a processing instruction.</em> <a href="#z531_4">More...</a><em></em></font><br><br></td></tr>
|
---|
69 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_5">setDocumentLocator</a> (const <a class="el" href="classLocator.html">Locator</a> *const locator)=0</td></tr>
|
---|
70 | <tr><td> </td><td><font size=-1><em>Receive an object for locating the origin of SAX document events.</em> <a href="#z531_5">More...</a><em></em></font><br><br></td></tr>
|
---|
71 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_6">startDocument</a> ()=0</td></tr>
|
---|
72 | <tr><td> </td><td><font size=-1><em>Receive notification of the beginning of a document.</em> <a href="#z531_6">More...</a><em></em></font><br><br></td></tr>
|
---|
73 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_7">startElement</a> (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const <a class="el" href="classAttributes.html">Attributes</a> &attrs)=0</td></tr>
|
---|
74 | <tr><td> </td><td><font size=-1><em>Receive notification of the beginning of an element.</em> <a href="#z531_7">More...</a><em></em></font><br><br></td></tr>
|
---|
75 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_8">startPrefixMapping</a> (const XMLCh *const prefix, const XMLCh *const uri)=0</td></tr>
|
---|
76 | <tr><td> </td><td><font size=-1><em>Receive notification of the start of an namespace prefix mapping.</em> <a href="#z531_8">More...</a><em></em></font><br><br></td></tr>
|
---|
77 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_9">endPrefixMapping</a> (const XMLCh *const prefix)=0</td></tr>
|
---|
78 | <tr><td> </td><td><font size=-1><em>Receive notification of the end of an namespace prefix mapping.</em> <a href="#z531_9">More...</a><em></em></font><br><br></td></tr>
|
---|
79 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classContentHandler.html#z531_10">skippedEntity</a> (const XMLCh *const name)=0</td></tr>
|
---|
80 | <tr><td> </td><td><font size=-1><em>Receive notification of a skipped entity.</em> <a href="#z531_10">More...</a><em></em></font><br><br></td></tr>
|
---|
81 | </table>
|
---|
82 | <hr><a name="_details"></a><h2>Detailed Description</h2>
|
---|
83 | Receive notification of general document events.
|
---|
84 | <p>
|
---|
85 |
|
---|
86 | <p>
|
---|
87 | This is the main interface that most SAX2 applications implement: if the application needs to be informed of basic parsing events, it implements this interface and registers an instance with the SAX2 parser using the setDocumentHandler method. The parser uses the instance to report basic document-related events like the start and end of elements and character data.
|
---|
88 | <p>
|
---|
89 |
|
---|
90 | <p>
|
---|
91 | The order of events in this interface is very important, and mirrors the order of information in the document itself. For example, all of an element's content (character data, processing instructions, and/or subelements) will appear, in order, between the startElement event and the corresponding endElement event.
|
---|
92 | <p>
|
---|
93 |
|
---|
94 | <p>
|
---|
95 | Application writers who do not want to implement the entire interface while can derive a class from Sax2HandlerBase, which implements the default functionality; parser writers can instantiate Sax2HandlerBase to obtain a default handler. The application can find the location of any document event using the <a class="el" href="classLocator.html">Locator</a> interface supplied by the <a class="el" href="classParser.html">Parser</a> through the setDocumentLocator method.
|
---|
96 | <p>
|
---|
97 | <dl compact><dt><b>
|
---|
98 | See also: </b><dd>
|
---|
99 | <a class="el" href="classParser.html#z441_2">Parser::setDocumentHandler</a> , <a class="el" href="classLocator.html#z438_0">Locator::Locator</a> , Sax2HandlerBase::Sax2HandlerBase </dl>
|
---|
100 | <p>
|
---|
101 | <hr><h2>Constructor & Destructor Documentation</h2>
|
---|
102 | <a name="z530_0" doxytag="ContentHandler::ContentHandler"></a><p>
|
---|
103 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
104 | <tr>
|
---|
105 | <td class="md">
|
---|
106 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
107 | <tr>
|
---|
108 | <td class="md" nowrap valign="top"> ContentHandler::ContentHandler </td>
|
---|
109 | <td class="md" valign="top">( </td>
|
---|
110 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
111 | <td class="md" valign="top">) </td>
|
---|
112 | <td class="md" nowrap></td>
|
---|
113 | </tr>
|
---|
114 |
|
---|
115 | </table>
|
---|
116 | </td>
|
---|
117 | </tr>
|
---|
118 | </table>
|
---|
119 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
120 | <tr>
|
---|
121 | <td>
|
---|
122 |
|
---|
123 | </td>
|
---|
124 | <td>
|
---|
125 |
|
---|
126 | <p>
|
---|
127 | Default constructor.
|
---|
128 | <p>
|
---|
129 | </td>
|
---|
130 | </tr>
|
---|
131 | </table>
|
---|
132 | <a name="z530_1" doxytag="ContentHandler::~ContentHandler"></a><p>
|
---|
133 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
134 | <tr>
|
---|
135 | <td class="md">
|
---|
136 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
137 | <tr>
|
---|
138 | <td class="md" nowrap valign="top"> virtual ContentHandler::~ContentHandler </td>
|
---|
139 | <td class="md" valign="top">( </td>
|
---|
140 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
141 | <td class="md" valign="top">) </td>
|
---|
142 | <td class="md" nowrap><code> [virtual]</code></td>
|
---|
143 | </tr>
|
---|
144 |
|
---|
145 | </table>
|
---|
146 | </td>
|
---|
147 | </tr>
|
---|
148 | </table>
|
---|
149 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
150 | <tr>
|
---|
151 | <td>
|
---|
152 |
|
---|
153 | </td>
|
---|
154 | <td>
|
---|
155 |
|
---|
156 | <p>
|
---|
157 | Destructor.
|
---|
158 | <p>
|
---|
159 | </td>
|
---|
160 | </tr>
|
---|
161 | </table>
|
---|
162 | <hr><h2>Member Function Documentation</h2>
|
---|
163 | <a name="z531_0" doxytag="ContentHandler::characters"></a><p>
|
---|
164 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
165 | <tr>
|
---|
166 | <td class="md">
|
---|
167 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
168 | <tr>
|
---|
169 | <td class="md" nowrap valign="top"> virtual void ContentHandler::characters </td>
|
---|
170 | <td class="md" valign="top">( </td>
|
---|
171 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
172 | <td class="mdname" nowrap> <em>chars</em>, </td>
|
---|
173 | </tr>
|
---|
174 | <tr>
|
---|
175 | <td></td>
|
---|
176 | <td></td>
|
---|
177 | <td class="md" nowrap>const unsigned int </td>
|
---|
178 | <td class="mdname" nowrap> <em>length</em></td>
|
---|
179 | </tr>
|
---|
180 | <tr>
|
---|
181 | <td></td>
|
---|
182 | <td class="md">) </td>
|
---|
183 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
184 | </tr>
|
---|
185 |
|
---|
186 | </table>
|
---|
187 | </td>
|
---|
188 | </tr>
|
---|
189 | </table>
|
---|
190 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
191 | <tr>
|
---|
192 | <td>
|
---|
193 |
|
---|
194 | </td>
|
---|
195 | <td>
|
---|
196 |
|
---|
197 | <p>
|
---|
198 | Receive notification of character data.
|
---|
199 | <p>
|
---|
200 |
|
---|
201 | <p>
|
---|
202 | The <a class="el" href="classParser.html">Parser</a> will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the <a class="el" href="classLocator.html">Locator</a> provides useful information.
|
---|
203 | <p>
|
---|
204 |
|
---|
205 | <p>
|
---|
206 | The application must not attempt to read from the array outside of the specified range.
|
---|
207 | <p>
|
---|
208 |
|
---|
209 | <p>
|
---|
210 | Note that some parsers will report whitespace using the <a class="el" href="classContentHandler.html#z531_3">ignorableWhitespace</a>() method rather than this one (validating parsers must do so).<dl compact><dt><b>
|
---|
211 | Parameters: </b><dd>
|
---|
212 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
213 | <tr><td valign=top><em>chars</em> </td><td>
|
---|
214 | The characters from the XML document. </td></tr>
|
---|
215 | <tr><td valign=top><em>length</em> </td><td>
|
---|
216 | The number of characters to read from the array. </td></tr>
|
---|
217 | </table>
|
---|
218 | </dl><dl compact><dt><b>
|
---|
219 | Exceptions: </b><dd>
|
---|
220 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
221 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
222 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
223 | </table>
|
---|
224 | </dl><dl compact><dt><b>
|
---|
225 | See also: </b><dd>
|
---|
226 | <a class="el" href="classContentHandler.html#z531_3">ignorableWhitespace</a> , <a class="el" href="classLocator.html#z438_0">Locator::Locator</a> </dl>
|
---|
227 | <p>
|
---|
228 | Implemented in <a class="el" href="classDefaultHandler.html#z534_0">DefaultHandler</a>. </td>
|
---|
229 | </tr>
|
---|
230 | </table>
|
---|
231 | <a name="z531_1" doxytag="ContentHandler::endDocument"></a><p>
|
---|
232 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
233 | <tr>
|
---|
234 | <td class="md">
|
---|
235 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
236 | <tr>
|
---|
237 | <td class="md" nowrap valign="top"> virtual void ContentHandler::endDocument </td>
|
---|
238 | <td class="md" valign="top">( </td>
|
---|
239 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
240 | <td class="md" valign="top">) </td>
|
---|
241 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
242 | </tr>
|
---|
243 |
|
---|
244 | </table>
|
---|
245 | </td>
|
---|
246 | </tr>
|
---|
247 | </table>
|
---|
248 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
249 | <tr>
|
---|
250 | <td>
|
---|
251 |
|
---|
252 | </td>
|
---|
253 | <td>
|
---|
254 |
|
---|
255 | <p>
|
---|
256 | Receive notification of the end of a document.
|
---|
257 | <p>
|
---|
258 |
|
---|
259 | <p>
|
---|
260 | The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.<dl compact><dt><b>
|
---|
261 | Exceptions: </b><dd>
|
---|
262 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
263 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
264 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
265 | </table>
|
---|
266 | </dl>
|
---|
267 | <p>
|
---|
268 | Implemented in <a class="el" href="classDefaultHandler.html#z534_1">DefaultHandler</a>. </td>
|
---|
269 | </tr>
|
---|
270 | </table>
|
---|
271 | <a name="z531_2" doxytag="ContentHandler::endElement"></a><p>
|
---|
272 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
273 | <tr>
|
---|
274 | <td class="md">
|
---|
275 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
276 | <tr>
|
---|
277 | <td class="md" nowrap valign="top"> virtual void ContentHandler::endElement </td>
|
---|
278 | <td class="md" valign="top">( </td>
|
---|
279 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
280 | <td class="mdname" nowrap> <em>uri</em>, </td>
|
---|
281 | </tr>
|
---|
282 | <tr>
|
---|
283 | <td></td>
|
---|
284 | <td></td>
|
---|
285 | <td class="md" nowrap>const XMLCh *const </td>
|
---|
286 | <td class="mdname" nowrap> <em>localname</em>, </td>
|
---|
287 | </tr>
|
---|
288 | <tr>
|
---|
289 | <td></td>
|
---|
290 | <td></td>
|
---|
291 | <td class="md" nowrap>const XMLCh *const </td>
|
---|
292 | <td class="mdname" nowrap> <em>qname</em></td>
|
---|
293 | </tr>
|
---|
294 | <tr>
|
---|
295 | <td></td>
|
---|
296 | <td class="md">) </td>
|
---|
297 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
298 | </tr>
|
---|
299 |
|
---|
300 | </table>
|
---|
301 | </td>
|
---|
302 | </tr>
|
---|
303 | </table>
|
---|
304 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
305 | <tr>
|
---|
306 | <td>
|
---|
307 |
|
---|
308 | </td>
|
---|
309 | <td>
|
---|
310 |
|
---|
311 | <p>
|
---|
312 | Receive notification of the end of an element.
|
---|
313 | <p>
|
---|
314 |
|
---|
315 | <p>
|
---|
316 | The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding <a class="el" href="classContentHandler.html#z531_7">startElement</a>() event for every <a class="el" href="classContentHandler.html#z531_2">endElement</a>() event (even when the element is empty).<dl compact><dt><b>
|
---|
317 | Parameters: </b><dd>
|
---|
318 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
319 | <tr><td valign=top><em>uri</em> </td><td>
|
---|
320 | The URI of the asscioated namespace for this element </td></tr>
|
---|
321 | <tr><td valign=top><em>localname</em> </td><td>
|
---|
322 | The local part of the element name </td></tr>
|
---|
323 | <tr><td valign=top><em>qname</em> </td><td>
|
---|
324 | The <a class="el" href="classQName.html">QName</a> of this element </td></tr>
|
---|
325 | </table>
|
---|
326 | </dl><dl compact><dt><b>
|
---|
327 | Exceptions: </b><dd>
|
---|
328 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
329 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
330 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
331 | </table>
|
---|
332 | </dl>
|
---|
333 | <p>
|
---|
334 | Implemented in <a class="el" href="classDefaultHandler.html#z534_2">DefaultHandler</a>. </td>
|
---|
335 | </tr>
|
---|
336 | </table>
|
---|
337 | <a name="z531_9" doxytag="ContentHandler::endPrefixMapping"></a><p>
|
---|
338 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
339 | <tr>
|
---|
340 | <td class="md">
|
---|
341 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
342 | <tr>
|
---|
343 | <td class="md" nowrap valign="top"> virtual void ContentHandler::endPrefixMapping </td>
|
---|
344 | <td class="md" valign="top">( </td>
|
---|
345 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
346 | <td class="mdname1" valign="top" nowrap> <em>prefix</em> </td>
|
---|
347 | <td class="md" valign="top">) </td>
|
---|
348 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
349 | </tr>
|
---|
350 |
|
---|
351 | </table>
|
---|
352 | </td>
|
---|
353 | </tr>
|
---|
354 | </table>
|
---|
355 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
356 | <tr>
|
---|
357 | <td>
|
---|
358 |
|
---|
359 | </td>
|
---|
360 | <td>
|
---|
361 |
|
---|
362 | <p>
|
---|
363 | Receive notification of the end of an namespace prefix mapping.
|
---|
364 | <p>
|
---|
365 |
|
---|
366 | <p>
|
---|
367 | By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each namespace prefix mapping.<dl compact><dt><b>
|
---|
368 | Parameters: </b><dd>
|
---|
369 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
370 | <tr><td valign=top><em>prefix</em> </td><td>
|
---|
371 | The namespace prefix used </td></tr>
|
---|
372 | </table>
|
---|
373 | </dl><dl compact><dt><b>
|
---|
374 | Exceptions: </b><dd>
|
---|
375 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
376 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
377 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
378 | </table>
|
---|
379 | </dl>
|
---|
380 | <p>
|
---|
381 | Implemented in <a class="el" href="classDefaultHandler.html#z535_4">DefaultHandler</a>. </td>
|
---|
382 | </tr>
|
---|
383 | </table>
|
---|
384 | <a name="z531_3" doxytag="ContentHandler::ignorableWhitespace"></a><p>
|
---|
385 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
386 | <tr>
|
---|
387 | <td class="md">
|
---|
388 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
389 | <tr>
|
---|
390 | <td class="md" nowrap valign="top"> virtual void ContentHandler::ignorableWhitespace </td>
|
---|
391 | <td class="md" valign="top">( </td>
|
---|
392 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
393 | <td class="mdname" nowrap> <em>chars</em>, </td>
|
---|
394 | </tr>
|
---|
395 | <tr>
|
---|
396 | <td></td>
|
---|
397 | <td></td>
|
---|
398 | <td class="md" nowrap>const unsigned int </td>
|
---|
399 | <td class="mdname" nowrap> <em>length</em></td>
|
---|
400 | </tr>
|
---|
401 | <tr>
|
---|
402 | <td></td>
|
---|
403 | <td class="md">) </td>
|
---|
404 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
405 | </tr>
|
---|
406 |
|
---|
407 | </table>
|
---|
408 | </td>
|
---|
409 | </tr>
|
---|
410 | </table>
|
---|
411 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
412 | <tr>
|
---|
413 | <td>
|
---|
414 |
|
---|
415 | </td>
|
---|
416 | <td>
|
---|
417 |
|
---|
418 | <p>
|
---|
419 | Receive notification of ignorable whitespace in element content.
|
---|
420 | <p>
|
---|
421 |
|
---|
422 | <p>
|
---|
423 | Validating Parsers must use this method to report each chunk of ignorable whitespace (see the W3C XML 1.0 recommendation, section 2.10): non-validating parsers may also use this method if they are capable of parsing and using content models.
|
---|
424 | <p>
|
---|
425 |
|
---|
426 | <p>
|
---|
427 | SAX parsers may return all contiguous whitespace in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the <a class="el" href="classLocator.html">Locator</a> provides useful information.
|
---|
428 | <p>
|
---|
429 |
|
---|
430 | <p>
|
---|
431 | The application must not attempt to read from the array outside of the specified range.<dl compact><dt><b>
|
---|
432 | Parameters: </b><dd>
|
---|
433 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
434 | <tr><td valign=top><em>chars</em> </td><td>
|
---|
435 | The characters from the XML document. </td></tr>
|
---|
436 | <tr><td valign=top><em>length</em> </td><td>
|
---|
437 | The number of characters to read from the array. </td></tr>
|
---|
438 | </table>
|
---|
439 | </dl><dl compact><dt><b>
|
---|
440 | Exceptions: </b><dd>
|
---|
441 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
442 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
443 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
444 | </table>
|
---|
445 | </dl><dl compact><dt><b>
|
---|
446 | See also: </b><dd>
|
---|
447 | <a class="el" href="classContentHandler.html#z531_0">characters</a> </dl>
|
---|
448 | <p>
|
---|
449 | Implemented in <a class="el" href="classDefaultHandler.html#z534_3">DefaultHandler</a>. </td>
|
---|
450 | </tr>
|
---|
451 | </table>
|
---|
452 | <a name="z531_4" doxytag="ContentHandler::processingInstruction"></a><p>
|
---|
453 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
454 | <tr>
|
---|
455 | <td class="md">
|
---|
456 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
457 | <tr>
|
---|
458 | <td class="md" nowrap valign="top"> virtual void ContentHandler::processingInstruction </td>
|
---|
459 | <td class="md" valign="top">( </td>
|
---|
460 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
461 | <td class="mdname" nowrap> <em>target</em>, </td>
|
---|
462 | </tr>
|
---|
463 | <tr>
|
---|
464 | <td></td>
|
---|
465 | <td></td>
|
---|
466 | <td class="md" nowrap>const XMLCh *const </td>
|
---|
467 | <td class="mdname" nowrap> <em>data</em></td>
|
---|
468 | </tr>
|
---|
469 | <tr>
|
---|
470 | <td></td>
|
---|
471 | <td class="md">) </td>
|
---|
472 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
473 | </tr>
|
---|
474 |
|
---|
475 | </table>
|
---|
476 | </td>
|
---|
477 | </tr>
|
---|
478 | </table>
|
---|
479 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
480 | <tr>
|
---|
481 | <td>
|
---|
482 |
|
---|
483 | </td>
|
---|
484 | <td>
|
---|
485 |
|
---|
486 | <p>
|
---|
487 | Receive notification of a processing instruction.
|
---|
488 | <p>
|
---|
489 |
|
---|
490 | <p>
|
---|
491 | The <a class="el" href="classParser.html">Parser</a> will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element.
|
---|
492 | <p>
|
---|
493 |
|
---|
494 | <p>
|
---|
495 | A SAX parser should never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.0, section 4.3.1) using this method.<dl compact><dt><b>
|
---|
496 | Parameters: </b><dd>
|
---|
497 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
498 | <tr><td valign=top><em>target</em> </td><td>
|
---|
499 | The processing instruction target. </td></tr>
|
---|
500 | <tr><td valign=top><em>data</em> </td><td>
|
---|
501 | The processing instruction data, or null if none was supplied. </td></tr>
|
---|
502 | </table>
|
---|
503 | </dl><dl compact><dt><b>
|
---|
504 | Exceptions: </b><dd>
|
---|
505 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
506 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
507 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
508 | </table>
|
---|
509 | </dl>
|
---|
510 | <p>
|
---|
511 | Implemented in <a class="el" href="classDefaultHandler.html#z534_4">DefaultHandler</a>. </td>
|
---|
512 | </tr>
|
---|
513 | </table>
|
---|
514 | <a name="z531_5" doxytag="ContentHandler::setDocumentLocator"></a><p>
|
---|
515 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
516 | <tr>
|
---|
517 | <td class="md">
|
---|
518 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
519 | <tr>
|
---|
520 | <td class="md" nowrap valign="top"> virtual void ContentHandler::setDocumentLocator </td>
|
---|
521 | <td class="md" valign="top">( </td>
|
---|
522 | <td class="md" nowrap valign="top">const <a class="el" href="classLocator.html">Locator</a> *const </td>
|
---|
523 | <td class="mdname1" valign="top" nowrap> <em>locator</em> </td>
|
---|
524 | <td class="md" valign="top">) </td>
|
---|
525 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
526 | </tr>
|
---|
527 |
|
---|
528 | </table>
|
---|
529 | </td>
|
---|
530 | </tr>
|
---|
531 | </table>
|
---|
532 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
533 | <tr>
|
---|
534 | <td>
|
---|
535 |
|
---|
536 | </td>
|
---|
537 | <td>
|
---|
538 |
|
---|
539 | <p>
|
---|
540 | Receive an object for locating the origin of SAX document events.
|
---|
541 | <p>
|
---|
542 | SAX parsers are strongly encouraged (though not absolutely required) to supply a locator: if it does so, it must supply the locator to the application by invoking this method before invoking any of the other methods in the <a class="el" href="classDocumentHandler.html">DocumentHandler</a> interface.
|
---|
543 | <p>
|
---|
544 | The locator allows the application to determine the end position of any document-related event, even if the parser is not reporting an error. Typically, the application will use this information for reporting its own errors (such as character content that does not match an application's business rules). The information returned by the locator is probably not sufficient for use with a search engine.
|
---|
545 | <p>
|
---|
546 | Note that the locator will return correct information only during the invocation of the events in this interface. The application should not attempt to use it at any other time.<dl compact><dt><b>
|
---|
547 | Parameters: </b><dd>
|
---|
548 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
549 | <tr><td valign=top><em>locator</em> </td><td>
|
---|
550 | An object that can return the location of any SAX document event. The object is only 'on loan' to the client code and they are not to attempt to delete or modify it in any way!</td></tr>
|
---|
551 | </table>
|
---|
552 | </dl><dl compact><dt><b>
|
---|
553 | See also: </b><dd>
|
---|
554 | <a class="el" href="classLocator.html#z438_0">Locator::Locator</a> </dl>
|
---|
555 | <p>
|
---|
556 | Implemented in <a class="el" href="classDefaultHandler.html#z535_0">DefaultHandler</a>. </td>
|
---|
557 | </tr>
|
---|
558 | </table>
|
---|
559 | <a name="z531_10" doxytag="ContentHandler::skippedEntity"></a><p>
|
---|
560 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
561 | <tr>
|
---|
562 | <td class="md">
|
---|
563 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
564 | <tr>
|
---|
565 | <td class="md" nowrap valign="top"> virtual void ContentHandler::skippedEntity </td>
|
---|
566 | <td class="md" valign="top">( </td>
|
---|
567 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
568 | <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
---|
569 | <td class="md" valign="top">) </td>
|
---|
570 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
571 | </tr>
|
---|
572 |
|
---|
573 | </table>
|
---|
574 | </td>
|
---|
575 | </tr>
|
---|
576 | </table>
|
---|
577 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
578 | <tr>
|
---|
579 | <td>
|
---|
580 |
|
---|
581 | </td>
|
---|
582 | <td>
|
---|
583 |
|
---|
584 | <p>
|
---|
585 | Receive notification of a skipped entity.
|
---|
586 | <p>
|
---|
587 |
|
---|
588 | <p>
|
---|
589 | The parser will invoke this method once for each entity skipped. All processors may skip external entities, depending on the values of the features:<br>
|
---|
590 | <a href="http://xml.org/sax/features/external-general-entities">http://xml.org/sax/features/external-general-entities</a><br>
|
---|
591 | <a href="http://xml.org/sax/features/external-parameter-entities">http://xml.org/sax/features/external-parameter-entities</a>
|
---|
592 | <p>
|
---|
593 |
|
---|
594 | <p>
|
---|
595 | Note: Xerces (specifically) never skips any entities, regardless of the above features. This function is never called in the Xerces implementation of SAX2.
|
---|
596 | <p>
|
---|
597 |
|
---|
598 | <p>
|
---|
599 | Introduced with SAX2<dl compact><dt><b>
|
---|
600 | Parameters: </b><dd>
|
---|
601 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
602 | <tr><td valign=top><em>name</em> </td><td>
|
---|
603 | The name of the skipped entity. If it is a parameter entity, the name will begin with %, and if it is the external DTD subset, it will be the string [dtd]. </td></tr>
|
---|
604 | </table>
|
---|
605 | </dl><dl compact><dt><b>
|
---|
606 | Exceptions: </b><dd>
|
---|
607 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
608 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
609 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
610 | </table>
|
---|
611 | </dl>
|
---|
612 | <p>
|
---|
613 | Implemented in <a class="el" href="classDefaultHandler.html#z535_5">DefaultHandler</a>. </td>
|
---|
614 | </tr>
|
---|
615 | </table>
|
---|
616 | <a name="z531_6" doxytag="ContentHandler::startDocument"></a><p>
|
---|
617 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
618 | <tr>
|
---|
619 | <td class="md">
|
---|
620 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
621 | <tr>
|
---|
622 | <td class="md" nowrap valign="top"> virtual void ContentHandler::startDocument </td>
|
---|
623 | <td class="md" valign="top">( </td>
|
---|
624 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
625 | <td class="md" valign="top">) </td>
|
---|
626 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
627 | </tr>
|
---|
628 |
|
---|
629 | </table>
|
---|
630 | </td>
|
---|
631 | </tr>
|
---|
632 | </table>
|
---|
633 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
634 | <tr>
|
---|
635 | <td>
|
---|
636 |
|
---|
637 | </td>
|
---|
638 | <td>
|
---|
639 |
|
---|
640 | <p>
|
---|
641 | Receive notification of the beginning of a document.
|
---|
642 | <p>
|
---|
643 |
|
---|
644 | <p>
|
---|
645 | The SAX parser will invoke this method only once, before any other methods in this interface or in <a class="el" href="classDTDHandler.html">DTDHandler</a> (except for setDocumentLocator).<dl compact><dt><b>
|
---|
646 | Exceptions: </b><dd>
|
---|
647 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
648 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
649 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
650 | </table>
|
---|
651 | </dl>
|
---|
652 | <p>
|
---|
653 | Implemented in <a class="el" href="classDefaultHandler.html#z535_1">DefaultHandler</a>. </td>
|
---|
654 | </tr>
|
---|
655 | </table>
|
---|
656 | <a name="z531_7" doxytag="ContentHandler::startElement"></a><p>
|
---|
657 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
658 | <tr>
|
---|
659 | <td class="md">
|
---|
660 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
661 | <tr>
|
---|
662 | <td class="md" nowrap valign="top"> virtual void ContentHandler::startElement </td>
|
---|
663 | <td class="md" valign="top">( </td>
|
---|
664 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
665 | <td class="mdname" nowrap> <em>uri</em>, </td>
|
---|
666 | </tr>
|
---|
667 | <tr>
|
---|
668 | <td></td>
|
---|
669 | <td></td>
|
---|
670 | <td class="md" nowrap>const XMLCh *const </td>
|
---|
671 | <td class="mdname" nowrap> <em>localname</em>, </td>
|
---|
672 | </tr>
|
---|
673 | <tr>
|
---|
674 | <td></td>
|
---|
675 | <td></td>
|
---|
676 | <td class="md" nowrap>const XMLCh *const </td>
|
---|
677 | <td class="mdname" nowrap> <em>qname</em>, </td>
|
---|
678 | </tr>
|
---|
679 | <tr>
|
---|
680 | <td></td>
|
---|
681 | <td></td>
|
---|
682 | <td class="md" nowrap>const <a class="el" href="classAttributes.html">Attributes</a> & </td>
|
---|
683 | <td class="mdname" nowrap> <em>attrs</em></td>
|
---|
684 | </tr>
|
---|
685 | <tr>
|
---|
686 | <td></td>
|
---|
687 | <td class="md">) </td>
|
---|
688 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
689 | </tr>
|
---|
690 |
|
---|
691 | </table>
|
---|
692 | </td>
|
---|
693 | </tr>
|
---|
694 | </table>
|
---|
695 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
696 | <tr>
|
---|
697 | <td>
|
---|
698 |
|
---|
699 | </td>
|
---|
700 | <td>
|
---|
701 |
|
---|
702 | <p>
|
---|
703 | Receive notification of the beginning of an element.
|
---|
704 | <p>
|
---|
705 |
|
---|
706 | <p>
|
---|
707 | The <a class="el" href="classParser.html">Parser</a> will invoke this method at the beginning of every element in the XML document; there will be a corresponding <a class="el" href="classContentHandler.html#z531_2">endElement</a>() event for every <a class="el" href="classContentHandler.html#z531_7">startElement</a>() event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding <a class="el" href="classContentHandler.html#z531_2">endElement</a>() event.
|
---|
708 | <p>
|
---|
709 |
|
---|
710 | <p>
|
---|
711 | Note that the attribute list provided will contain only attributes with explicit values (specified or defaulted): IMPLIED attributes will be omitted.<dl compact><dt><b>
|
---|
712 | Parameters: </b><dd>
|
---|
713 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
714 | <tr><td valign=top><em>uri</em> </td><td>
|
---|
715 | The URI of the asscioated namespace for this element </td></tr>
|
---|
716 | <tr><td valign=top><em>localname</em> </td><td>
|
---|
717 | The local part of the element name </td></tr>
|
---|
718 | <tr><td valign=top><em>qname</em> </td><td>
|
---|
719 | The <a class="el" href="classQName.html">QName</a> of this element </td></tr>
|
---|
720 | <tr><td valign=top><em>attrs</em> </td><td>
|
---|
721 | The attributes attached to the element, if any. </td></tr>
|
---|
722 | </table>
|
---|
723 | </dl><dl compact><dt><b>
|
---|
724 | Exceptions: </b><dd>
|
---|
725 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
726 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
727 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
728 | </table>
|
---|
729 | </dl><dl compact><dt><b>
|
---|
730 | See also: </b><dd>
|
---|
731 | <a class="el" href="classContentHandler.html#z531_2">endElement</a> , <a class="el" href="classAttributes.html#z528_0">Attributes::Attributes</a> </dl>
|
---|
732 | <p>
|
---|
733 | Implemented in <a class="el" href="classDefaultHandler.html#z535_2">DefaultHandler</a>. </td>
|
---|
734 | </tr>
|
---|
735 | </table>
|
---|
736 | <a name="z531_8" doxytag="ContentHandler::startPrefixMapping"></a><p>
|
---|
737 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
738 | <tr>
|
---|
739 | <td class="md">
|
---|
740 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
741 | <tr>
|
---|
742 | <td class="md" nowrap valign="top"> virtual void ContentHandler::startPrefixMapping </td>
|
---|
743 | <td class="md" valign="top">( </td>
|
---|
744 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
745 | <td class="mdname" nowrap> <em>prefix</em>, </td>
|
---|
746 | </tr>
|
---|
747 | <tr>
|
---|
748 | <td></td>
|
---|
749 | <td></td>
|
---|
750 | <td class="md" nowrap>const XMLCh *const </td>
|
---|
751 | <td class="mdname" nowrap> <em>uri</em></td>
|
---|
752 | </tr>
|
---|
753 | <tr>
|
---|
754 | <td></td>
|
---|
755 | <td class="md">) </td>
|
---|
756 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
757 | </tr>
|
---|
758 |
|
---|
759 | </table>
|
---|
760 | </td>
|
---|
761 | </tr>
|
---|
762 | </table>
|
---|
763 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
764 | <tr>
|
---|
765 | <td>
|
---|
766 |
|
---|
767 | </td>
|
---|
768 | <td>
|
---|
769 |
|
---|
770 | <p>
|
---|
771 | Receive notification of the start of an namespace prefix mapping.
|
---|
772 | <p>
|
---|
773 |
|
---|
774 | <p>
|
---|
775 | By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each namespace prefix mapping.<dl compact><dt><b>
|
---|
776 | Parameters: </b><dd>
|
---|
777 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
778 | <tr><td valign=top><em>prefix</em> </td><td>
|
---|
779 | The namespace prefix used </td></tr>
|
---|
780 | <tr><td valign=top><em>uri</em> </td><td>
|
---|
781 | The namespace URI used. </td></tr>
|
---|
782 | </table>
|
---|
783 | </dl><dl compact><dt><b>
|
---|
784 | Exceptions: </b><dd>
|
---|
785 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
786 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
787 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
788 | </table>
|
---|
789 | </dl>
|
---|
790 | <p>
|
---|
791 | Implemented in <a class="el" href="classDefaultHandler.html#z535_3">DefaultHandler</a>. </td>
|
---|
792 | </tr>
|
---|
793 | </table>
|
---|
794 | <hr>The documentation for this class was generated from the following file:<ul>
|
---|
795 | <li><a class="el" href="ContentHandler_8hpp-source.html">ContentHandler.hpp</a></ul>
|
---|
796 | </FONT></TD></TR></TABLE><BR>
|
---|
797 | </TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1" alt=""></TD></TR><TR><TD align="center"><FONT color="#0086b2" size="-1"><I>
|
---|
798 | Copyright © 1994-2004 The Apache Software Foundation.
|
---|
799 | All Rights Reserved.
|
---|
800 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|