1 | <HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>EntityResolver 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>EntityResolver Class Reference</h1>Basic interface for resolving entities.
|
---|
45 | <a href="#_details">More...</a>
|
---|
46 | <p>
|
---|
47 | Inheritance diagram for EntityResolver:<p><center><img src="classEntityResolver__inherit__graph.gif" border="0" usemap="#EntityResolver__inherit__map" alt="Inheritance graph"></center>
|
---|
48 | <map name="EntityResolver__inherit__map">
|
---|
49 | <area href="classDefaultHandler.html" shape="rect" coords="7,105,105,87" alt="">
|
---|
50 | <area href="classHandlerBase.html" shape="rect" coords="129,105,215,87" alt="">
|
---|
51 | </map>
|
---|
52 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classEntityResolver-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
|
---|
53 | <tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
|
---|
54 | <tr><td colspan="2"><div class="groupHeader">Constructors and Destructor</div></td></tr>
|
---|
55 | <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classEntityResolver.html#z424_0">EntityResolver</a> ()</td></tr>
|
---|
56 | <tr><td> </td><td><font size=-1><em>Default Constructor.</em> <a href="#z424_0">More...</a><em></em></font><br><br></td></tr>
|
---|
57 | <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classEntityResolver.html#z424_1">~EntityResolver</a> ()</td></tr>
|
---|
58 | <tr><td> </td><td><font size=-1><em>Destructor.</em> <a href="#z424_1">More...</a><em></em></font><br><br></td></tr>
|
---|
59 | <tr><td colspan="2"><div class="groupHeader">The EntityResolver interface</div></td></tr>
|
---|
60 | <tr><td nowrap align=right valign=top>virtual <a class="el" href="classInputSource.html">InputSource</a> * </td><td valign=bottom><a class="el" href="classEntityResolver.html#z425_0">resolveEntity</a> (const XMLCh *const publicId, const XMLCh *const systemId)=0</td></tr>
|
---|
61 | <tr><td> </td><td><font size=-1><em>Allow the application to resolve external entities.</em> <a href="#z425_0">More...</a><em></em></font><br><br></td></tr>
|
---|
62 | </table>
|
---|
63 | <hr><a name="_details"></a><h2>Detailed Description</h2>
|
---|
64 | Basic interface for resolving entities.
|
---|
65 | <p>
|
---|
66 |
|
---|
67 | <p>
|
---|
68 | If a SAX application needs to implement customized handling for external entities, it must implement this interface and register an instance with the SAX parser using the parser's setEntityResolver method.
|
---|
69 | <p>
|
---|
70 |
|
---|
71 | <p>
|
---|
72 | The parser will then allow the application to intercept any external entities (including the external DTD subset and external parameter entities, if any) before including them.
|
---|
73 | <p>
|
---|
74 |
|
---|
75 | <p>
|
---|
76 | Many SAX applications will not need to implement this interface, but it will be especially useful for applications that build XML documents from databases or other specialised input sources, or for applications that use URI types other than URLs.
|
---|
77 | <p>
|
---|
78 |
|
---|
79 | <p>
|
---|
80 | The following resolver would provide the application with a special character stream for the entity with the system identifier "<a href="http://www.myhost.com/today">http://www.myhost.com/today</a>":
|
---|
81 | <p>
|
---|
82 | <code> include <<a class="el" href="EntityResolver_8hpp.html">xercesc/sax/EntityResolver.hpp</a>><br>
|
---|
83 | include <<a class="el" href="InputSource_8hpp.html">xercesc/sax/InputSource.hpp</a>><br>
|
---|
84 | <br>
|
---|
85 | class MyResolver : public EntityResolver {<br>
|
---|
86 | public:<br>
|
---|
87 | <a class="el" href="classInputSource.html">InputSource</a> resolveEntity (const XMLCh* const publicId, const XMLCh* const systemId);<br>
|
---|
88 | <br>
|
---|
89 | ...<br>
|
---|
90 | };<br>
|
---|
91 | <br>
|
---|
92 | MyResolver::resolveEntity {<br>
|
---|
93 | if (<a class="el" href="classXMLString.html#z512_6">XMLString::compareString</a>(systemId, "<a href="http://www.myhost.com/today">http://www.myhost.com/today</a>")) {<br>
|
---|
94 | MyReader* reader = new MyReader();<br>
|
---|
95 | return new InputSource(reader);<br>
|
---|
96 | } else {<br>
|
---|
97 | return null;<br>
|
---|
98 | }<br>
|
---|
99 | }<br>
|
---|
100 | <br>
|
---|
101 | </code>
|
---|
102 | <p>
|
---|
103 |
|
---|
104 | <p>
|
---|
105 | The application can also use this interface to redirect system identifiers to local URIs or to look up replacements in a catalog (possibly by using the public identifier).
|
---|
106 | <p>
|
---|
107 |
|
---|
108 | <p>
|
---|
109 | The <a class="el" href="classHandlerBase.html">HandlerBase</a> class implements the default behaviour for this interface, which is simply always to return null (to request that the parser use the default system identifier).
|
---|
110 | <p>
|
---|
111 | <dl compact><dt><b>
|
---|
112 | See also: </b><dd>
|
---|
113 | <a class="el" href="classParser.html#z441_0">Parser::setEntityResolver</a> , <a class="el" href="classInputSource.html#z437_0">InputSource::InputSource</a> , <a class="el" href="classHandlerBase.html#a0">HandlerBase::HandlerBase</a> </dl>
|
---|
114 | <p>
|
---|
115 | <hr><h2>Constructor & Destructor Documentation</h2>
|
---|
116 | <a name="z424_0" doxytag="EntityResolver::EntityResolver"></a><p>
|
---|
117 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
118 | <tr>
|
---|
119 | <td class="md">
|
---|
120 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
121 | <tr>
|
---|
122 | <td class="md" nowrap valign="top"> EntityResolver::EntityResolver </td>
|
---|
123 | <td class="md" valign="top">( </td>
|
---|
124 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
125 | <td class="md" valign="top">) </td>
|
---|
126 | <td class="md" nowrap></td>
|
---|
127 | </tr>
|
---|
128 |
|
---|
129 | </table>
|
---|
130 | </td>
|
---|
131 | </tr>
|
---|
132 | </table>
|
---|
133 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
134 | <tr>
|
---|
135 | <td>
|
---|
136 |
|
---|
137 | </td>
|
---|
138 | <td>
|
---|
139 |
|
---|
140 | <p>
|
---|
141 | Default Constructor.
|
---|
142 | <p>
|
---|
143 | </td>
|
---|
144 | </tr>
|
---|
145 | </table>
|
---|
146 | <a name="z424_1" doxytag="EntityResolver::~EntityResolver"></a><p>
|
---|
147 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
148 | <tr>
|
---|
149 | <td class="md">
|
---|
150 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
151 | <tr>
|
---|
152 | <td class="md" nowrap valign="top"> virtual EntityResolver::~EntityResolver </td>
|
---|
153 | <td class="md" valign="top">( </td>
|
---|
154 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
155 | <td class="md" valign="top">) </td>
|
---|
156 | <td class="md" nowrap><code> [virtual]</code></td>
|
---|
157 | </tr>
|
---|
158 |
|
---|
159 | </table>
|
---|
160 | </td>
|
---|
161 | </tr>
|
---|
162 | </table>
|
---|
163 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
164 | <tr>
|
---|
165 | <td>
|
---|
166 |
|
---|
167 | </td>
|
---|
168 | <td>
|
---|
169 |
|
---|
170 | <p>
|
---|
171 | Destructor.
|
---|
172 | <p>
|
---|
173 | </td>
|
---|
174 | </tr>
|
---|
175 | </table>
|
---|
176 | <hr><h2>Member Function Documentation</h2>
|
---|
177 | <a name="z425_0" doxytag="EntityResolver::resolveEntity"></a><p>
|
---|
178 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
179 | <tr>
|
---|
180 | <td class="md">
|
---|
181 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
182 | <tr>
|
---|
183 | <td class="md" nowrap valign="top"> virtual <a class="el" href="classInputSource.html">InputSource</a>* EntityResolver::resolveEntity </td>
|
---|
184 | <td class="md" valign="top">( </td>
|
---|
185 | <td class="md" nowrap valign="top">const XMLCh *const </td>
|
---|
186 | <td class="mdname" nowrap> <em>publicId</em>, </td>
|
---|
187 | </tr>
|
---|
188 | <tr>
|
---|
189 | <td></td>
|
---|
190 | <td></td>
|
---|
191 | <td class="md" nowrap>const XMLCh *const </td>
|
---|
192 | <td class="mdname" nowrap> <em>systemId</em></td>
|
---|
193 | </tr>
|
---|
194 | <tr>
|
---|
195 | <td></td>
|
---|
196 | <td class="md">) </td>
|
---|
197 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
198 | </tr>
|
---|
199 |
|
---|
200 | </table>
|
---|
201 | </td>
|
---|
202 | </tr>
|
---|
203 | </table>
|
---|
204 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
205 | <tr>
|
---|
206 | <td>
|
---|
207 |
|
---|
208 | </td>
|
---|
209 | <td>
|
---|
210 |
|
---|
211 | <p>
|
---|
212 | Allow the application to resolve external entities.
|
---|
213 | <p>
|
---|
214 |
|
---|
215 | <p>
|
---|
216 | The <a class="el" href="classParser.html">Parser</a> will call this method before opening any external entity except the top-level document entity (including the external DTD subset, external entities referenced within the DTD, and external entities referenced within the document element): the application may request that the parser resolve the entity itself, that it use an alternative URI, or that it use an entirely different input source.
|
---|
217 | <p>
|
---|
218 |
|
---|
219 | <p>
|
---|
220 | Application writers can use this method to redirect external system identifiers to secure and/or local URIs, to look up public identifiers in a catalogue, or to read an entity from a database or other input source (including, for example, a dialog box).
|
---|
221 | <p>
|
---|
222 |
|
---|
223 | <p>
|
---|
224 | If the system identifier is a URL, the SAX parser must resolve it fully before reporting it to the application.<dl compact><dt><b>
|
---|
225 | Parameters: </b><dd>
|
---|
226 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
227 | <tr><td valign=top><em>publicId</em> </td><td>
|
---|
228 | The public identifier of the external entity being referenced, or null if none was supplied. </td></tr>
|
---|
229 | <tr><td valign=top><em>systemId</em> </td><td>
|
---|
230 | The system identifier of the external entity being referenced. </td></tr>
|
---|
231 | </table>
|
---|
232 | </dl><dl compact><dt><b>
|
---|
233 | Returns: </b><dd>
|
---|
234 | An <a class="el" href="classInputSource.html">InputSource</a> object describing the new input source, or null to request that the parser open a regular URI connection to the system identifier. The returned <a class="el" href="classInputSource.html">InputSource</a> is owned by the parser which is responsible to clean up the memory. </dl><dl compact><dt><b>
|
---|
235 | Exceptions: </b><dd>
|
---|
236 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
237 | <tr><td valign=top><em><a class="el" href="classSAXException.html">SAXException</a></em> </td><td>
|
---|
238 | Any SAX exception, possibly wrapping another exception. </td></tr>
|
---|
239 | <tr><td valign=top><em>IOException</em> </td><td>
|
---|
240 | An IO exception, possibly the result of creating a new InputStream or Reader for the <a class="el" href="classInputSource.html">InputSource</a>. </td></tr>
|
---|
241 | </table>
|
---|
242 | </dl><dl compact><dt><b>
|
---|
243 | See also: </b><dd>
|
---|
244 | <a class="el" href="classInputSource.html#z437_0">InputSource::InputSource</a> </dl>
|
---|
245 | <p>
|
---|
246 | Implemented in <a class="el" href="classHandlerBase.html#z430_0">HandlerBase</a>. </td>
|
---|
247 | </tr>
|
---|
248 | </table>
|
---|
249 | <hr>The documentation for this class was generated from the following file:<ul>
|
---|
250 | <li><a class="el" href="EntityResolver_8hpp-source.html">EntityResolver.hpp</a></ul>
|
---|
251 | </FONT></TD></TR></TABLE><BR>
|
---|
252 | </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>
|
---|
253 | Copyright © 1994-2004 The Apache Software Foundation.
|
---|
254 | All Rights Reserved.
|
---|
255 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|