source: NonGTP/Xerces/xerces/doc/html/apiDocs/classXMLErrorReporter.html @ 358

Revision 358, 24.0 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>XMLErrorReporter 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">&nbsp;</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> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
44<hr><h1>XMLErrorReporter  Class Reference</h1>This abstract class defines a callback mechanism for the scanner.
45<a href="#_details">More...</a>
46<p>
47Inheritance diagram for XMLErrorReporter:<p><center><img src="classXMLErrorReporter__inherit__graph.gif" border="0" usemap="#XMLErrorReporter__inherit__map" alt="Inheritance graph"></center>
48<map name="XMLErrorReporter__inherit__map">
49<area href="classAbstractDOMParser.html" shape="rect" coords="7,105,140,86" alt="">
50<area href="classSAXParser.html" shape="rect" coords="164,105,244,86" alt="">
51<area href="classXercesDOMParser.html" shape="rect" coords="11,174,136,156" alt="">
52</map>
53<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classXMLErrorReporter-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
54<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
55<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classXMLErrorReporter.html#s4">ErrTypes</a> { <a class="el" href="classXMLErrorReporter.html#s4s0">ErrType_Warning</a>,
56<a class="el" href="classXMLErrorReporter.html#s4s1">ErrType_Error</a>,
57<a class="el" href="classXMLErrorReporter.html#s4s2">ErrType_Fatal</a>,
58<a class="el" href="classXMLErrorReporter.html#s4s3">ErrTypes_Unknown</a>
59 }</td></tr>
60<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
61<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
62<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classXMLErrorReporter.html#z276_0">~XMLErrorReporter</a> ()</td></tr>
63<tr><td>&nbsp;</td><td><font size=-1><em>Default destructor.</em> <a href="#z276_0">More...</a><em></em></font><br><br></td></tr>
64<tr><td colspan="2"><div class="groupHeader">Error Handler interface</div></td></tr>
65<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classXMLErrorReporter.html#z277_0">error</a> (const unsigned int errCode, const XMLCh *const errDomain, const <a class="el" href="classXMLErrorReporter.html#s4">ErrTypes</a> type, const XMLCh *const errorText, const XMLCh *const systemId, const XMLCh *const publicId, const XMLSSize_t lineNum, const XMLSSize_t colNum)=0</td></tr>
66<tr><td>&nbsp;</td><td><font size=-1><em>Called to report errors from the scanner or validator.</em> <a href="#z277_0">More...</a><em></em></font><br><br></td></tr>
67<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classXMLErrorReporter.html#z277_1">resetErrors</a> ()=0</td></tr>
68<tr><td>&nbsp;</td><td><font size=-1><em>Called before a new parse event to allow the handler to reset.</em> <a href="#z277_1">More...</a><em></em></font><br><br></td></tr>
69<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
70<tr><td colspan="2"><div class="groupHeader">Constructor</div></td></tr>
71<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classXMLErrorReporter.html#z278_0">XMLErrorReporter</a> ()</td></tr>
72<tr><td>&nbsp;</td><td><font size=-1><em>Default constructor.</em> <a href="#z278_0">More...</a><em></em></font><br><br></td></tr>
73</table>
74<hr><a name="_details"></a><h2>Detailed Description</h2>
75This abstract class defines a callback mechanism for the scanner.
76<p>
77By creating a class that implements this interface and plugging an instance of that class into the scanner, the scanner will call back on the object's virtual methods to report error events. This class is also used with the validator, to allow it to report errors.
78<p>
79This class is primarily for use by those writing their own parser classes. If you use the standard parser classes, DOMParser and <a class="el" href="classSAXParser.html">SAXParser</a>, you won't use this API. You will instead use a similar mechanism defined by the SAX API, called <a class="el" href="classErrorHandler.html">ErrorHandler</a>.
80<p>
81<hr><h2>Member Enumeration Documentation</h2>
82<a name="s4" doxytag="XMLErrorReporter::ErrTypes"></a><p>
83<table width="100%" cellpadding="2" cellspacing="0" border="0">
84  <tr>
85    <td class="md">
86      <table cellpadding="0" cellspacing="0" border="0">
87        <tr>
88          <td class="md" nowrap valign="top"> enum XMLErrorReporter::ErrTypes
89      </table>
90    </td>
91  </tr>
92</table>
93<table cellspacing=5 cellpadding=0 border=0>
94  <tr>
95    <td>
96      &nbsp;
97    </td>
98    <td>
99
100<p>
101<dl compact><dt><b>
102Enumeration values:</b><dd>
103<table border=0 cellspacing=2 cellpadding=0>
104<tr><td valign=top><em><a name="s4s0" doxytag="ErrType_Warning"></a><em>ErrType_Warning</em></em>&nbsp;</td><td>
105</td></tr>
106<tr><td valign=top><em><a name="s4s1" doxytag="ErrType_Error"></a><em>ErrType_Error</em></em>&nbsp;</td><td>
107</td></tr>
108<tr><td valign=top><em><a name="s4s2" doxytag="ErrType_Fatal"></a><em>ErrType_Fatal</em></em>&nbsp;</td><td>
109</td></tr>
110<tr><td valign=top><em><a name="s4s3" doxytag="ErrTypes_Unknown"></a><em>ErrTypes_Unknown</em></em>&nbsp;</td><td>
111</td></tr>
112</table>
113</dl>
114    </td>
115  </tr>
116</table>
117<hr><h2>Constructor &amp; Destructor Documentation</h2>
118<a name="z276_0" doxytag="XMLErrorReporter::~XMLErrorReporter"></a><p>
119<table width="100%" cellpadding="2" cellspacing="0" border="0">
120  <tr>
121    <td class="md">
122      <table cellpadding="0" cellspacing="0" border="0">
123        <tr>
124          <td class="md" nowrap valign="top"> virtual XMLErrorReporter::~XMLErrorReporter </td>
125          <td class="md" valign="top">(&nbsp;</td>
126          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
127          <td class="md" valign="top">)&nbsp;</td>
128          <td class="md" nowrap><code> [virtual]</code></td>
129        </tr>
130
131      </table>
132    </td>
133  </tr>
134</table>
135<table cellspacing=5 cellpadding=0 border=0>
136  <tr>
137    <td>
138      &nbsp;
139    </td>
140    <td>
141
142<p>
143Default destructor.
144<p>
145    </td>
146  </tr>
147</table>
148<a name="z278_0" doxytag="XMLErrorReporter::XMLErrorReporter"></a><p>
149<table width="100%" cellpadding="2" cellspacing="0" border="0">
150  <tr>
151    <td class="md">
152      <table cellpadding="0" cellspacing="0" border="0">
153        <tr>
154          <td class="md" nowrap valign="top"> XMLErrorReporter::XMLErrorReporter </td>
155          <td class="md" valign="top">(&nbsp;</td>
156          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
157          <td class="md" valign="top">)&nbsp;</td>
158          <td class="md" nowrap><code> [protected]</code></td>
159        </tr>
160
161      </table>
162    </td>
163  </tr>
164</table>
165<table cellspacing=5 cellpadding=0 border=0>
166  <tr>
167    <td>
168      &nbsp;
169    </td>
170    <td>
171
172<p>
173Default constructor.
174<p>
175    </td>
176  </tr>
177</table>
178<hr><h2>Member Function Documentation</h2>
179<a name="z277_0" doxytag="XMLErrorReporter::error"></a><p>
180<table width="100%" cellpadding="2" cellspacing="0" border="0">
181  <tr>
182    <td class="md">
183      <table cellpadding="0" cellspacing="0" border="0">
184        <tr>
185          <td class="md" nowrap valign="top"> virtual void XMLErrorReporter::error </td>
186          <td class="md" valign="top">(&nbsp;</td>
187          <td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
188          <td class="mdname" nowrap>&nbsp; <em>errCode</em>, </td>
189        </tr>
190        <tr>
191          <td></td>
192          <td></td>
193          <td class="md" nowrap>const XMLCh *const&nbsp;</td>
194          <td class="mdname" nowrap>&nbsp; <em>errDomain</em>, </td>
195        </tr>
196        <tr>
197          <td></td>
198          <td></td>
199          <td class="md" nowrap>const <a class="el" href="classXMLErrorReporter.html#s4">ErrTypes</a>&nbsp;</td>
200          <td class="mdname" nowrap>&nbsp; <em>type</em>, </td>
201        </tr>
202        <tr>
203          <td></td>
204          <td></td>
205          <td class="md" nowrap>const XMLCh *const&nbsp;</td>
206          <td class="mdname" nowrap>&nbsp; <em>errorText</em>, </td>
207        </tr>
208        <tr>
209          <td></td>
210          <td></td>
211          <td class="md" nowrap>const XMLCh *const&nbsp;</td>
212          <td class="mdname" nowrap>&nbsp; <em>systemId</em>, </td>
213        </tr>
214        <tr>
215          <td></td>
216          <td></td>
217          <td class="md" nowrap>const XMLCh *const&nbsp;</td>
218          <td class="mdname" nowrap>&nbsp; <em>publicId</em>, </td>
219        </tr>
220        <tr>
221          <td></td>
222          <td></td>
223          <td class="md" nowrap>const XMLSSize_t&nbsp;</td>
224          <td class="mdname" nowrap>&nbsp; <em>lineNum</em>, </td>
225        </tr>
226        <tr>
227          <td></td>
228          <td></td>
229          <td class="md" nowrap>const XMLSSize_t&nbsp;</td>
230          <td class="mdname" nowrap>&nbsp; <em>colNum</em></td>
231        </tr>
232        <tr>
233          <td></td>
234          <td class="md">)&nbsp;</td>
235          <td class="md" colspan="2"><code> [pure virtual]</code></td>
236        </tr>
237
238      </table>
239    </td>
240  </tr>
241</table>
242<table cellspacing=5 cellpadding=0 border=0>
243  <tr>
244    <td>
245      &nbsp;
246    </td>
247    <td>
248
249<p>
250Called to report errors from the scanner or validator.
251<p>
252This method is called back on by the scanner or validator (or any other internal parser component which might need to report an error in the future.) It contains all the information that the client code might need to report or log the error.<dl compact><dt><b>
253Parameters: </b><dd>
254<table border=0 cellspacing=2 cellpadding=0>
255<tr><td valign=top><em>errCode</em>&nbsp;</td><td>
256The error code of the error being reported. What this means is dependent on the domain it is from.</td></tr>
257<tr><td valign=top><em>errDomain</em>&nbsp;</td><td>
258The domain from which the error occured. The domain is a means of providing a hierarchical layering to the error system, so that a single set of error id numbers don't have to be split up.</td></tr>
259<tr><td valign=top><em>type</em>&nbsp;</td><td>
260The error type, which is defined mostly by XML which categorizes errors into warning, errors and validity constraints.</td></tr>
261<tr><td valign=top><em>errorText</em>&nbsp;</td><td>
262The actual text of the error. This is translatable, so can possibly be in the local language if a translation has been provided.</td></tr>
263<tr><td valign=top><em>systemId</em>&nbsp;</td><td>
264The system id of the entity where the error occured, fully qualified.</td></tr>
265<tr><td valign=top><em>publicId</em>&nbsp;</td><td>
266The optional public id of the entity were the error occured. It can be an empty string if non was provided.</td></tr>
267<tr><td valign=top><em>lineNum</em>&nbsp;</td><td>
268The line number within the source XML of the error.</td></tr>
269<tr><td valign=top><em>colNum</em>&nbsp;</td><td>
270The column number within the source XML of the error. Because of the parsing style, this is usually just after the actual offending text. </td></tr>
271</table>
272</dl>    </td>
273  </tr>
274</table>
275<a name="z277_1" doxytag="XMLErrorReporter::resetErrors"></a><p>
276<table width="100%" cellpadding="2" cellspacing="0" border="0">
277  <tr>
278    <td class="md">
279      <table cellpadding="0" cellspacing="0" border="0">
280        <tr>
281          <td class="md" nowrap valign="top"> virtual void XMLErrorReporter::resetErrors </td>
282          <td class="md" valign="top">(&nbsp;</td>
283          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
284          <td class="md" valign="top">)&nbsp;</td>
285          <td class="md" nowrap><code> [pure virtual]</code></td>
286        </tr>
287
288      </table>
289    </td>
290  </tr>
291</table>
292<table cellspacing=5 cellpadding=0 border=0>
293  <tr>
294    <td>
295      &nbsp;
296    </td>
297    <td>
298
299<p>
300Called before a new parse event to allow the handler to reset.
301<p>
302This method is called by the scanner before a new parse event is about to start. It gives the error handler a chance to reset its internal state.
303<p>
304Implemented in <a class="el" href="classSAXParser.html#z470_1">SAXParser</a>.    </td>
305  </tr>
306</table>
307<hr>The documentation for this class was generated from the following file:<ul>
308<li><a class="el" href="XMLErrorReporter_8hpp-source.html">XMLErrorReporter.hpp</a></ul>
309    </FONT></TD></TR></TABLE><BR>
310</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>
311              Copyright &copy; 1994-2004 The Apache Software Foundation.
312              All Rights Reserved.
313            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.