You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1906 lines
110 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>Xerces-C++: SAX2XMLReader Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td style="padding-left: 0.5em;">
  20. <div id="projectname">Xerces-C++
  21. &#160;<span id="projectnumber">3.1.2</span>
  22. </div>
  23. </td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. </div>
  28. <!-- end header part -->
  29. <!-- Generated by Doxygen 1.8.9.1 -->
  30. <div id="navrow1" class="tabs">
  31. <ul class="tablist">
  32. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  33. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  34. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  35. <li><a href="files.html"><span>Files</span></a></li>
  36. </ul>
  37. </div>
  38. <div id="navrow2" class="tabs2">
  39. <ul class="tablist">
  40. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  41. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  42. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  43. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  44. </ul>
  45. </div>
  46. </div><!-- top -->
  47. <div class="header">
  48. <div class="summary">
  49. <a href="classSAX2XMLReader-members.html">List of all members</a> </div>
  50. <div class="headertitle">
  51. <div class="title">SAX2XMLReader Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  52. </div><!--header-->
  53. <div class="contents">
  54. <div class="dynheader">
  55. Inheritance diagram for SAX2XMLReader:</div>
  56. <div class="dyncontent">
  57. <div class="center">
  58. <img src="classSAX2XMLReader.png" usemap="#SAX2XMLReader_map" alt=""/>
  59. <map id="SAX2XMLReader_map" name="SAX2XMLReader_map">
  60. <area href="classSAX2XMLFilter.html" alt="SAX2XMLFilter" shape="rect" coords="0,56,113,80"/>
  61. </map>
  62. </div></div>
  63. <table class="memberdecls">
  64. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  65. Public Types</h2></td></tr>
  66. <tr><td colspan="2"><div class="groupHeader">Public constants</div></td></tr>
  67. <tr class="memitem:ad6be26566ce8e2f65b95849247d10853"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#ad6be26566ce8e2f65b95849247d10853">ValSchemes</a> { <a class="el" href="classSAX2XMLReader.html#ad6be26566ce8e2f65b95849247d10853a7b5317560a7f1130511148b7750d6244">Val_Never</a>,
  68. <a class="el" href="classSAX2XMLReader.html#ad6be26566ce8e2f65b95849247d10853a95ad9c6bc78a2ce7fa2a8db410b1dc39">Val_Always</a>,
  69. <a class="el" href="classSAX2XMLReader.html#ad6be26566ce8e2f65b95849247d10853a57143e99019f8302ea26965e26ce7cb0">Val_Auto</a>
  70. }</td></tr>
  71. <tr class="memdesc:ad6be26566ce8e2f65b95849247d10853"><td class="mdescLeft">&#160;</td><td class="mdescRight">ValScheme enum used in setValidationScheme Val_Never: Do not report validation errors. <a href="classSAX2XMLReader.html#ad6be26566ce8e2f65b95849247d10853">More...</a><br /></td></tr>
  72. <tr class="separator:ad6be26566ce8e2f65b95849247d10853"><td class="memSeparator" colspan="2">&#160;</td></tr>
  73. </table><table class="memberdecls">
  74. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  75. Public Member Functions</h2></td></tr>
  76. <tr><td colspan="2"><div class="groupHeader">Constructors and Destructor</div></td></tr>
  77. <tr class="memitem:afaad9a21efa3e2626e80a7045c3a39b1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#afaad9a21efa3e2626e80a7045c3a39b1">SAX2XMLReader</a> ()</td></tr>
  78. <tr class="memdesc:afaad9a21efa3e2626e80a7045c3a39b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">The default constructor. <a href="#afaad9a21efa3e2626e80a7045c3a39b1">More...</a><br /></td></tr>
  79. <tr class="separator:afaad9a21efa3e2626e80a7045c3a39b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  80. <tr class="memitem:a65eac731ad3537122d86bf5826fe8047"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a65eac731ad3537122d86bf5826fe8047">~SAX2XMLReader</a> ()</td></tr>
  81. <tr class="memdesc:a65eac731ad3537122d86bf5826fe8047"><td class="mdescLeft">&#160;</td><td class="mdescRight">The destructor. <a href="#a65eac731ad3537122d86bf5826fe8047">More...</a><br /></td></tr>
  82. <tr class="separator:a65eac731ad3537122d86bf5826fe8047"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr><td colspan="2"><div class="groupHeader">Implementation of SAX 2.0 XMLReader interface's.</div></td></tr>
  84. <tr class="memitem:a9fda35bb540194c1a8a5a4a95c0bcdb7"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classContentHandler.html">ContentHandler</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a9fda35bb540194c1a8a5a4a95c0bcdb7">getContentHandler</a> () const =0</td></tr>
  85. <tr class="memdesc:a9fda35bb540194c1a8a5a4a95c0bcdb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method returns the installed content handler. <a href="#a9fda35bb540194c1a8a5a4a95c0bcdb7">More...</a><br /></td></tr>
  86. <tr class="separator:a9fda35bb540194c1a8a5a4a95c0bcdb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:a89f6ad6b94dce1d82f86d88084cafeaf"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDTDHandler.html">DTDHandler</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a89f6ad6b94dce1d82f86d88084cafeaf">getDTDHandler</a> () const =0</td></tr>
  88. <tr class="memdesc:a89f6ad6b94dce1d82f86d88084cafeaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method returns the installed DTD handler. <a href="#a89f6ad6b94dce1d82f86d88084cafeaf">More...</a><br /></td></tr>
  89. <tr class="separator:a89f6ad6b94dce1d82f86d88084cafeaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:aef939a6a68ded3d000f8ecbd80cc5089"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classEntityResolver.html">EntityResolver</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#aef939a6a68ded3d000f8ecbd80cc5089">getEntityResolver</a> () const =0</td></tr>
  91. <tr class="memdesc:aef939a6a68ded3d000f8ecbd80cc5089"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method returns the installed entity resolver. <a href="#aef939a6a68ded3d000f8ecbd80cc5089">More...</a><br /></td></tr>
  92. <tr class="separator:aef939a6a68ded3d000f8ecbd80cc5089"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:a96bb93cd1b62dd75068325cbcdfbb581"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classErrorHandler.html">ErrorHandler</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a96bb93cd1b62dd75068325cbcdfbb581">getErrorHandler</a> () const =0</td></tr>
  94. <tr class="memdesc:a96bb93cd1b62dd75068325cbcdfbb581"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method returns the installed error handler. <a href="#a96bb93cd1b62dd75068325cbcdfbb581">More...</a><br /></td></tr>
  95. <tr class="separator:a96bb93cd1b62dd75068325cbcdfbb581"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:a6a704107fbb8c3552589236e959238be"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a6a704107fbb8c3552589236e959238be">getFeature</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const name) const =0</td></tr>
  97. <tr class="memdesc:a6a704107fbb8c3552589236e959238be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Query the current state of any feature in a SAX2 XMLReader. <a href="#a6a704107fbb8c3552589236e959238be">More...</a><br /></td></tr>
  98. <tr class="separator:a6a704107fbb8c3552589236e959238be"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a909627968ffa64bb14e673d5e2caf6f7"><td class="memItemLeft" align="right" valign="top">virtual void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a909627968ffa64bb14e673d5e2caf6f7">getProperty</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const name) const =0</td></tr>
  100. <tr class="memdesc:a909627968ffa64bb14e673d5e2caf6f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Query the current value of a property in a SAX2 XMLReader. <a href="#a909627968ffa64bb14e673d5e2caf6f7">More...</a><br /></td></tr>
  101. <tr class="separator:a909627968ffa64bb14e673d5e2caf6f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:aa1885becac34443e9648ccaeeed733f5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#aa1885becac34443e9648ccaeeed733f5">setContentHandler</a> (<a class="el" href="classContentHandler.html">ContentHandler</a> *const handler)=0</td></tr>
  103. <tr class="memdesc:aa1885becac34443e9648ccaeeed733f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow an application to register a document event handler. <a href="#aa1885becac34443e9648ccaeeed733f5">More...</a><br /></td></tr>
  104. <tr class="separator:aa1885becac34443e9648ccaeeed733f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:ab862874149da5e744a04f1bc6de60ff4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#ab862874149da5e744a04f1bc6de60ff4">setDTDHandler</a> (<a class="el" href="classDTDHandler.html">DTDHandler</a> *const handler)=0</td></tr>
  106. <tr class="memdesc:ab862874149da5e744a04f1bc6de60ff4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow an application to register a DTD event handler. <a href="#ab862874149da5e744a04f1bc6de60ff4">More...</a><br /></td></tr>
  107. <tr class="separator:ab862874149da5e744a04f1bc6de60ff4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:ab4621486a9776d480ec10e596a4d66a6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#ab4621486a9776d480ec10e596a4d66a6">setEntityResolver</a> (<a class="el" href="classEntityResolver.html">EntityResolver</a> *const resolver)=0</td></tr>
  109. <tr class="memdesc:ab4621486a9776d480ec10e596a4d66a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow an application to register a custom entity resolver. <a href="#ab4621486a9776d480ec10e596a4d66a6">More...</a><br /></td></tr>
  110. <tr class="separator:ab4621486a9776d480ec10e596a4d66a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:a910e9acbec9c8bbd4ff3fdb92c76cf0e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a910e9acbec9c8bbd4ff3fdb92c76cf0e">setErrorHandler</a> (<a class="el" href="classErrorHandler.html">ErrorHandler</a> *const handler)=0</td></tr>
  112. <tr class="memdesc:a910e9acbec9c8bbd4ff3fdb92c76cf0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow an application to register an error event handler. <a href="#a910e9acbec9c8bbd4ff3fdb92c76cf0e">More...</a><br /></td></tr>
  113. <tr class="separator:a910e9acbec9c8bbd4ff3fdb92c76cf0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:aa597ea87071e1a0aa1288567e4bfd6d7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#aa597ea87071e1a0aa1288567e4bfd6d7">setFeature</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const name, const bool value)=0</td></tr>
  115. <tr class="memdesc:aa597ea87071e1a0aa1288567e4bfd6d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the state of any feature in a SAX2 XMLReader. <a href="#aa597ea87071e1a0aa1288567e4bfd6d7">More...</a><br /></td></tr>
  116. <tr class="separator:aa597ea87071e1a0aa1288567e4bfd6d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:a02a51d39bbb1241cef2f6dab1ec56947"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a02a51d39bbb1241cef2f6dab1ec56947">setProperty</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const name, void *value)=0</td></tr>
  118. <tr class="memdesc:a02a51d39bbb1241cef2f6dab1ec56947"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value of any property in a SAX2 XMLReader. <a href="#a02a51d39bbb1241cef2f6dab1ec56947">More...</a><br /></td></tr>
  119. <tr class="separator:a02a51d39bbb1241cef2f6dab1ec56947"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a284811d3b9785e0898093638ab17662d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a284811d3b9785e0898093638ab17662d">parse</a> (const <a class="el" href="classInputSource.html">InputSource</a> &amp;source)=0</td></tr>
  121. <tr class="memdesc:a284811d3b9785e0898093638ab17662d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse an XML document. <a href="#a284811d3b9785e0898093638ab17662d">More...</a><br /></td></tr>
  122. <tr class="separator:a284811d3b9785e0898093638ab17662d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:afaa08affc814631f5a6059e9611b84e3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#afaa08affc814631f5a6059e9611b84e3">parse</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const systemId)=0</td></tr>
  124. <tr class="memdesc:afaa08affc814631f5a6059e9611b84e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse an XML document from a system identifier (URI). <a href="#afaa08affc814631f5a6059e9611b84e3">More...</a><br /></td></tr>
  125. <tr class="separator:afaa08affc814631f5a6059e9611b84e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:ab063964b062ebbb98a74347354877f45"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#ab063964b062ebbb98a74347354877f45">parse</a> (const char *const systemId)=0</td></tr>
  127. <tr class="memdesc:ab063964b062ebbb98a74347354877f45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse an XML document from a system identifier (URI). <a href="#ab063964b062ebbb98a74347354877f45">More...</a><br /></td></tr>
  128. <tr class="separator:ab063964b062ebbb98a74347354877f45"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr><td colspan="2"><div class="groupHeader">SAX 2.0-ext</div></td></tr>
  130. <tr class="memitem:a8f814c6f2a2b1750ea6672de7c2392cd"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDeclHandler.html">DeclHandler</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a8f814c6f2a2b1750ea6672de7c2392cd">getDeclarationHandler</a> () const =0</td></tr>
  131. <tr class="memdesc:a8f814c6f2a2b1750ea6672de7c2392cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method returns the installed declaration handler. <a href="#a8f814c6f2a2b1750ea6672de7c2392cd">More...</a><br /></td></tr>
  132. <tr class="separator:a8f814c6f2a2b1750ea6672de7c2392cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:a2279a6a050eef26c67ba11620044a0ec"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classLexicalHandler.html">LexicalHandler</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a2279a6a050eef26c67ba11620044a0ec">getLexicalHandler</a> () const =0</td></tr>
  134. <tr class="memdesc:a2279a6a050eef26c67ba11620044a0ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method returns the installed lexical handler. <a href="#a2279a6a050eef26c67ba11620044a0ec">More...</a><br /></td></tr>
  135. <tr class="separator:a2279a6a050eef26c67ba11620044a0ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a60b5233e334c78920a8361cec2a81429"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a60b5233e334c78920a8361cec2a81429">setDeclarationHandler</a> (<a class="el" href="classDeclHandler.html">DeclHandler</a> *const handler)=0</td></tr>
  137. <tr class="memdesc:a60b5233e334c78920a8361cec2a81429"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow an application to register a declaration event handler. <a href="#a60b5233e334c78920a8361cec2a81429">More...</a><br /></td></tr>
  138. <tr class="separator:a60b5233e334c78920a8361cec2a81429"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:a397fd37a21987186c6e4e63211f5d118"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a397fd37a21987186c6e4e63211f5d118">setLexicalHandler</a> (<a class="el" href="classLexicalHandler.html">LexicalHandler</a> *const handler)=0</td></tr>
  140. <tr class="memdesc:a397fd37a21987186c6e4e63211f5d118"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow an application to register a lexical event handler. <a href="#a397fd37a21987186c6e4e63211f5d118">More...</a><br /></td></tr>
  141. <tr class="separator:a397fd37a21987186c6e4e63211f5d118"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr><td colspan="2"><div class="groupHeader">Getter Methods (Xerces-C specific)</div></td></tr>
  143. <tr class="memitem:aa9fd92dd2a348d0884c2ec8156c755db"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classXMLValidator.html">XMLValidator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#aa9fd92dd2a348d0884c2ec8156c755db">getValidator</a> () const =0</td></tr>
  144. <tr class="memdesc:aa9fd92dd2a348d0884c2ec8156c755db"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is used to get the current validator. <a href="#aa9fd92dd2a348d0884c2ec8156c755db">More...</a><br /></td></tr>
  145. <tr class="separator:aa9fd92dd2a348d0884c2ec8156c755db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:aac3468fe6688375acbf104b04324b7d1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#aac3468fe6688375acbf104b04324b7d1">getErrorCount</a> () const =0</td></tr>
  147. <tr class="memdesc:aac3468fe6688375acbf104b04324b7d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get error count from the last parse operation. <a href="#aac3468fe6688375acbf104b04324b7d1">More...</a><br /></td></tr>
  148. <tr class="separator:aac3468fe6688375acbf104b04324b7d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a693dae9983a6d951c1fb36f0a9eab111"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a693dae9983a6d951c1fb36f0a9eab111">getExitOnFirstFatalError</a> () const =0</td></tr>
  150. <tr class="memdesc:a693dae9983a6d951c1fb36f0a9eab111"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method returns the state of the parser's exit-on-First-Fatal-Error flag. <a href="#a693dae9983a6d951c1fb36f0a9eab111">More...</a><br /></td></tr>
  151. <tr class="separator:a693dae9983a6d951c1fb36f0a9eab111"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:af2d257d62e2b044095409d84181c6424"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#af2d257d62e2b044095409d84181c6424">getValidationConstraintFatal</a> () const =0</td></tr>
  153. <tr class="memdesc:af2d257d62e2b044095409d84181c6424"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method returns the state of the parser's validation-constraint-fatal flag. <a href="#af2d257d62e2b044095409d84181c6424">More...</a><br /></td></tr>
  154. <tr class="separator:af2d257d62e2b044095409d84181c6424"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:aedc75b118c38b2beb51cb074f25c04b5"><td class="memItemLeft" align="right" valign="top">virtual Grammar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#aedc75b118c38b2beb51cb074f25c04b5">getGrammar</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const nameSpaceKey)=0</td></tr>
  156. <tr class="memdesc:aedc75b118c38b2beb51cb074f25c04b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the grammar that is associated with the specified namespace key. <a href="#aedc75b118c38b2beb51cb074f25c04b5">More...</a><br /></td></tr>
  157. <tr class="separator:aedc75b118c38b2beb51cb074f25c04b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:aa294a6a334a9bfd2b5ec048419875f5f"><td class="memItemLeft" align="right" valign="top">virtual Grammar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#aa294a6a334a9bfd2b5ec048419875f5f">getRootGrammar</a> ()=0</td></tr>
  159. <tr class="memdesc:aa294a6a334a9bfd2b5ec048419875f5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the grammar where the root element is declared. <a href="#aa294a6a334a9bfd2b5ec048419875f5f">More...</a><br /></td></tr>
  160. <tr class="separator:aa294a6a334a9bfd2b5ec048419875f5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:af20b4b419f902f2fc46bb2d7043077da"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#af20b4b419f902f2fc46bb2d7043077da">getURIText</a> (unsigned int uriId) const =0</td></tr>
  162. <tr class="memdesc:af20b4b419f902f2fc46bb2d7043077da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the string corresponding to a URI id from the URI string pool. <a href="#af20b4b419f902f2fc46bb2d7043077da">More...</a><br /></td></tr>
  163. <tr class="separator:af20b4b419f902f2fc46bb2d7043077da"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. <tr class="memitem:a41aaef48a24fe4d1fcca07c98cd9acc2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a7647261a546ac47bda863a51d24ad898">XMLFilePos</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a41aaef48a24fe4d1fcca07c98cd9acc2">getSrcOffset</a> () const =0</td></tr>
  165. <tr class="memdesc:a41aaef48a24fe4d1fcca07c98cd9acc2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current src offset within the input source. <a href="#a41aaef48a24fe4d1fcca07c98cd9acc2">More...</a><br /></td></tr>
  166. <tr class="separator:a41aaef48a24fe4d1fcca07c98cd9acc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. <tr><td colspan="2"><div class="groupHeader">Setter Methods (Xerces-C specific)</div></td></tr>
  168. <tr class="memitem:a2ee07410cc0f6488eeada730471990ae"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a2ee07410cc0f6488eeada730471990ae">setValidator</a> (<a class="el" href="classXMLValidator.html">XMLValidator</a> *valueToAdopt)=0</td></tr>
  169. <tr class="memdesc:a2ee07410cc0f6488eeada730471990ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is used to set a validator. <a href="#a2ee07410cc0f6488eeada730471990ae">More...</a><br /></td></tr>
  170. <tr class="separator:a2ee07410cc0f6488eeada730471990ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
  171. <tr class="memitem:aceaca940ae26cc40234074f338632872"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#aceaca940ae26cc40234074f338632872">setExitOnFirstFatalError</a> (const bool newState)=0</td></tr>
  172. <tr class="memdesc:aceaca940ae26cc40234074f338632872"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method allows users to set the parser's behaviour when it encounters the first fatal error. <a href="#aceaca940ae26cc40234074f338632872">More...</a><br /></td></tr>
  173. <tr class="separator:aceaca940ae26cc40234074f338632872"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:a1e582e31531c645181c220c9ccbbe904"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a1e582e31531c645181c220c9ccbbe904">setValidationConstraintFatal</a> (const bool newState)=0</td></tr>
  175. <tr class="memdesc:a1e582e31531c645181c220c9ccbbe904"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method allows users to set the parser's behaviour when it encounters a validation constraint error. <a href="#a1e582e31531c645181c220c9ccbbe904">More...</a><br /></td></tr>
  176. <tr class="separator:a1e582e31531c645181c220c9ccbbe904"><td class="memSeparator" colspan="2">&#160;</td></tr>
  177. <tr><td colspan="2"><div class="groupHeader">Progressive scan methods</div></td></tr>
  178. <tr class="memitem:ae3be1a347fa03c6f6c08d6298702905c"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c">parseFirst</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const systemId, XMLPScanToken &amp;toFill)=0</td></tr>
  179. <tr class="memdesc:ae3be1a347fa03c6f6c08d6298702905c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin a progressive parse operation. <a href="#ae3be1a347fa03c6f6c08d6298702905c">More...</a><br /></td></tr>
  180. <tr class="separator:ae3be1a347fa03c6f6c08d6298702905c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  181. <tr class="memitem:aad62c959271689d53d14fc772350ba41"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#aad62c959271689d53d14fc772350ba41">parseFirst</a> (const char *const systemId, XMLPScanToken &amp;toFill)=0</td></tr>
  182. <tr class="memdesc:aad62c959271689d53d14fc772350ba41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin a progressive parse operation. <a href="#aad62c959271689d53d14fc772350ba41">More...</a><br /></td></tr>
  183. <tr class="separator:aad62c959271689d53d14fc772350ba41"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. <tr class="memitem:ab3bd9b161c22c87564697edc56560c38"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#ab3bd9b161c22c87564697edc56560c38">parseFirst</a> (const <a class="el" href="classInputSource.html">InputSource</a> &amp;source, XMLPScanToken &amp;toFill)=0</td></tr>
  185. <tr class="memdesc:ab3bd9b161c22c87564697edc56560c38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin a progressive parse operation. <a href="#ab3bd9b161c22c87564697edc56560c38">More...</a><br /></td></tr>
  186. <tr class="separator:ab3bd9b161c22c87564697edc56560c38"><td class="memSeparator" colspan="2">&#160;</td></tr>
  187. <tr class="memitem:af5369c76d498e87fdb24c36fc4100fb0"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#af5369c76d498e87fdb24c36fc4100fb0">parseNext</a> (XMLPScanToken &amp;token)=0</td></tr>
  188. <tr class="memdesc:af5369c76d498e87fdb24c36fc4100fb0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Continue a progressive parse operation. <a href="#af5369c76d498e87fdb24c36fc4100fb0">More...</a><br /></td></tr>
  189. <tr class="separator:af5369c76d498e87fdb24c36fc4100fb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:a58e67a11484763eb0eb705d4cfc3cbf5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a58e67a11484763eb0eb705d4cfc3cbf5">parseReset</a> (XMLPScanToken &amp;token)=0</td></tr>
  191. <tr class="memdesc:a58e67a11484763eb0eb705d4cfc3cbf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the parser after a progressive parse. <a href="#a58e67a11484763eb0eb705d4cfc3cbf5">More...</a><br /></td></tr>
  192. <tr class="separator:a58e67a11484763eb0eb705d4cfc3cbf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  193. <tr><td colspan="2"><div class="groupHeader">Grammar preparsing interface's.</div></td></tr>
  194. <tr class="memitem:a3c8fab9b934a8d13e970244c6e1392be"><td class="memItemLeft" align="right" valign="top">virtual Grammar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a3c8fab9b934a8d13e970244c6e1392be">loadGrammar</a> (const <a class="el" href="classInputSource.html">InputSource</a> &amp;source, const Grammar::GrammarType grammarType, const bool toCache=false)=0</td></tr>
  195. <tr class="memdesc:a3c8fab9b934a8d13e970244c6e1392be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Preparse schema grammar (XML Schema, DTD, etc.) via an input source object. <a href="#a3c8fab9b934a8d13e970244c6e1392be">More...</a><br /></td></tr>
  196. <tr class="separator:a3c8fab9b934a8d13e970244c6e1392be"><td class="memSeparator" colspan="2">&#160;</td></tr>
  197. <tr class="memitem:ad3afe06b9aea85b62b205f63c3ff2a29"><td class="memItemLeft" align="right" valign="top">virtual Grammar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#ad3afe06b9aea85b62b205f63c3ff2a29">loadGrammar</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const systemId, const Grammar::GrammarType grammarType, const bool toCache=false)=0</td></tr>
  198. <tr class="memdesc:ad3afe06b9aea85b62b205f63c3ff2a29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL. <a href="#ad3afe06b9aea85b62b205f63c3ff2a29">More...</a><br /></td></tr>
  199. <tr class="separator:ad3afe06b9aea85b62b205f63c3ff2a29"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="memitem:a026f2f7f663f705f6bf56e6934d70416"><td class="memItemLeft" align="right" valign="top">virtual Grammar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a026f2f7f663f705f6bf56e6934d70416">loadGrammar</a> (const char *const systemId, const Grammar::GrammarType grammarType, const bool toCache=false)=0</td></tr>
  201. <tr class="memdesc:a026f2f7f663f705f6bf56e6934d70416"><td class="mdescLeft">&#160;</td><td class="mdescRight">Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL. <a href="#a026f2f7f663f705f6bf56e6934d70416">More...</a><br /></td></tr>
  202. <tr class="separator:a026f2f7f663f705f6bf56e6934d70416"><td class="memSeparator" colspan="2">&#160;</td></tr>
  203. <tr class="memitem:a8ade5e379ef8233584695786d5851714"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a8ade5e379ef8233584695786d5851714">resetCachedGrammarPool</a> ()=0</td></tr>
  204. <tr class="memdesc:a8ade5e379ef8233584695786d5851714"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the cached grammar pool. <a href="#a8ade5e379ef8233584695786d5851714">More...</a><br /></td></tr>
  205. <tr class="separator:a8ade5e379ef8233584695786d5851714"><td class="memSeparator" colspan="2">&#160;</td></tr>
  206. <tr class="memitem:a84fd7af67ec7e2c593f6244c89eba39c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a84fd7af67ec7e2c593f6244c89eba39c">setInputBufferSize</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> bufferSize)</td></tr>
  207. <tr class="memdesc:a84fd7af67ec7e2c593f6244c89eba39c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set maximum input buffer size. <a href="#a84fd7af67ec7e2c593f6244c89eba39c">More...</a><br /></td></tr>
  208. <tr class="separator:a84fd7af67ec7e2c593f6244c89eba39c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  209. <tr><td colspan="2"><div class="groupHeader">Advanced document handler list maintenance methods</div></td></tr>
  210. <tr class="memitem:a5235f668aea5d4a799258338d01d7636"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a5235f668aea5d4a799258338d01d7636">installAdvDocHandler</a> (<a class="el" href="classXMLDocumentHandler.html">XMLDocumentHandler</a> *const toInstall)=0</td></tr>
  211. <tr class="memdesc:a5235f668aea5d4a799258338d01d7636"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method installs the specified 'advanced' document callback handler, thereby allowing the user to customize the processing, if they choose to do so. <a href="#a5235f668aea5d4a799258338d01d7636">More...</a><br /></td></tr>
  212. <tr class="separator:a5235f668aea5d4a799258338d01d7636"><td class="memSeparator" colspan="2">&#160;</td></tr>
  213. <tr class="memitem:a46885254749d80ef2dfb19ad8d48e1e0"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSAX2XMLReader.html#a46885254749d80ef2dfb19ad8d48e1e0">removeAdvDocHandler</a> (<a class="el" href="classXMLDocumentHandler.html">XMLDocumentHandler</a> *const toRemove)=0</td></tr>
  214. <tr class="memdesc:a46885254749d80ef2dfb19ad8d48e1e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method removes the 'advanced' document handler callback from the underlying parser scanner. <a href="#a46885254749d80ef2dfb19ad8d48e1e0">More...</a><br /></td></tr>
  215. <tr class="separator:a46885254749d80ef2dfb19ad8d48e1e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  216. </table>
  217. <h2 class="groupheader">Member Enumeration Documentation</h2>
  218. <a class="anchor" id="ad6be26566ce8e2f65b95849247d10853"></a>
  219. <div class="memitem">
  220. <div class="memproto">
  221. <table class="memname">
  222. <tr>
  223. <td class="memname">enum <a class="el" href="classSAX2XMLReader.html#ad6be26566ce8e2f65b95849247d10853">SAX2XMLReader::ValSchemes</a></td>
  224. </tr>
  225. </table>
  226. </div><div class="memdoc">
  227. <p>ValScheme enum used in setValidationScheme Val_Never: Do not report validation errors. </p>
  228. <p>Val_Always: The parser will always report validation errors. Val_Auto: The parser will report validation errors only if a grammar is specified.</p>
  229. <p>The schemes map to these feature values: Val_Never: parser-&gt;setFeature(XMLUni::fgSAX2CoreValidation, false);</p>
  230. <p>Val_Always: parser-&gt;setFeature(XMLUni::fgSAX2CoreValidation, true); parser-&gt;setFeature(XMLUni::fgXercesDynamic, false);</p>
  231. <p>Val_Auto: parser-&gt;setFeature(XMLUni::fgSAX2CoreValidation, true); parser-&gt;setFeature(XMLUni::fgXercesDynamic, true);</p>
  232. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#aa597ea87071e1a0aa1288567e4bfd6d7" title="Set the state of any feature in a SAX2 XMLReader. ">setFeature</a> </dd></dl>
  233. <table class="fieldtable">
  234. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ad6be26566ce8e2f65b95849247d10853a7b5317560a7f1130511148b7750d6244"></a>Val_Never&#160;</td><td class="fielddoc">
  235. </td></tr>
  236. <tr><td class="fieldname"><a class="anchor" id="ad6be26566ce8e2f65b95849247d10853a95ad9c6bc78a2ce7fa2a8db410b1dc39"></a>Val_Always&#160;</td><td class="fielddoc">
  237. </td></tr>
  238. <tr><td class="fieldname"><a class="anchor" id="ad6be26566ce8e2f65b95849247d10853a57143e99019f8302ea26965e26ce7cb0"></a>Val_Auto&#160;</td><td class="fielddoc">
  239. </td></tr>
  240. </table>
  241. </div>
  242. </div>
  243. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  244. <a class="anchor" id="afaad9a21efa3e2626e80a7045c3a39b1"></a>
  245. <div class="memitem">
  246. <div class="memproto">
  247. <table class="memname">
  248. <tr>
  249. <td class="memname">SAX2XMLReader::SAX2XMLReader </td>
  250. <td>(</td>
  251. <td class="paramname"></td><td>)</td>
  252. <td></td>
  253. </tr>
  254. </table>
  255. </div><div class="memdoc">
  256. <p>The default constructor. </p>
  257. </div>
  258. </div>
  259. <a class="anchor" id="a65eac731ad3537122d86bf5826fe8047"></a>
  260. <div class="memitem">
  261. <div class="memproto">
  262. <table class="mlabels">
  263. <tr>
  264. <td class="mlabels-left">
  265. <table class="memname">
  266. <tr>
  267. <td class="memname">virtual SAX2XMLReader::~SAX2XMLReader </td>
  268. <td>(</td>
  269. <td class="paramname"></td><td>)</td>
  270. <td></td>
  271. </tr>
  272. </table>
  273. </td>
  274. <td class="mlabels-right">
  275. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p>The destructor. </p>
  280. </div>
  281. </div>
  282. <h2 class="groupheader">Member Function Documentation</h2>
  283. <a class="anchor" id="a9fda35bb540194c1a8a5a4a95c0bcdb7"></a>
  284. <div class="memitem">
  285. <div class="memproto">
  286. <table class="mlabels">
  287. <tr>
  288. <td class="mlabels-left">
  289. <table class="memname">
  290. <tr>
  291. <td class="memname">virtual <a class="el" href="classContentHandler.html">ContentHandler</a>* SAX2XMLReader::getContentHandler </td>
  292. <td>(</td>
  293. <td class="paramname"></td><td>)</td>
  294. <td> const</td>
  295. </tr>
  296. </table>
  297. </td>
  298. <td class="mlabels-right">
  299. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  300. </tr>
  301. </table>
  302. </div><div class="memdoc">
  303. <p>This method returns the installed content handler. </p>
  304. <dl class="section return"><dt>Returns</dt><dd>A pointer to the installed content handler object. </dd></dl>
  305. </div>
  306. </div>
  307. <a class="anchor" id="a8f814c6f2a2b1750ea6672de7c2392cd"></a>
  308. <div class="memitem">
  309. <div class="memproto">
  310. <table class="mlabels">
  311. <tr>
  312. <td class="mlabels-left">
  313. <table class="memname">
  314. <tr>
  315. <td class="memname">virtual <a class="el" href="classDeclHandler.html">DeclHandler</a>* SAX2XMLReader::getDeclarationHandler </td>
  316. <td>(</td>
  317. <td class="paramname"></td><td>)</td>
  318. <td> const</td>
  319. </tr>
  320. </table>
  321. </td>
  322. <td class="mlabels-right">
  323. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  324. </tr>
  325. </table>
  326. </div><div class="memdoc">
  327. <p>This method returns the installed declaration handler. </p>
  328. <dl class="section return"><dt>Returns</dt><dd>A pointer to the installed declaration handler object. </dd></dl>
  329. </div>
  330. </div>
  331. <a class="anchor" id="a89f6ad6b94dce1d82f86d88084cafeaf"></a>
  332. <div class="memitem">
  333. <div class="memproto">
  334. <table class="mlabels">
  335. <tr>
  336. <td class="mlabels-left">
  337. <table class="memname">
  338. <tr>
  339. <td class="memname">virtual <a class="el" href="classDTDHandler.html">DTDHandler</a>* SAX2XMLReader::getDTDHandler </td>
  340. <td>(</td>
  341. <td class="paramname"></td><td>)</td>
  342. <td> const</td>
  343. </tr>
  344. </table>
  345. </td>
  346. <td class="mlabels-right">
  347. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  348. </tr>
  349. </table>
  350. </div><div class="memdoc">
  351. <p>This method returns the installed DTD handler. </p>
  352. <dl class="section return"><dt>Returns</dt><dd>A pointer to the installed DTD handler object. </dd></dl>
  353. </div>
  354. </div>
  355. <a class="anchor" id="aef939a6a68ded3d000f8ecbd80cc5089"></a>
  356. <div class="memitem">
  357. <div class="memproto">
  358. <table class="mlabels">
  359. <tr>
  360. <td class="mlabels-left">
  361. <table class="memname">
  362. <tr>
  363. <td class="memname">virtual <a class="el" href="classEntityResolver.html">EntityResolver</a>* SAX2XMLReader::getEntityResolver </td>
  364. <td>(</td>
  365. <td class="paramname"></td><td>)</td>
  366. <td> const</td>
  367. </tr>
  368. </table>
  369. </td>
  370. <td class="mlabels-right">
  371. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  372. </tr>
  373. </table>
  374. </div><div class="memdoc">
  375. <p>This method returns the installed entity resolver. </p>
  376. <dl class="section return"><dt>Returns</dt><dd>A pointer to the installed entity resolver object. </dd></dl>
  377. </div>
  378. </div>
  379. <a class="anchor" id="aac3468fe6688375acbf104b04324b7d1"></a>
  380. <div class="memitem">
  381. <div class="memproto">
  382. <table class="mlabels">
  383. <tr>
  384. <td class="mlabels-left">
  385. <table class="memname">
  386. <tr>
  387. <td class="memname">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> SAX2XMLReader::getErrorCount </td>
  388. <td>(</td>
  389. <td class="paramname"></td><td>)</td>
  390. <td> const</td>
  391. </tr>
  392. </table>
  393. </td>
  394. <td class="mlabels-right">
  395. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  396. </tr>
  397. </table>
  398. </div><div class="memdoc">
  399. <p>Get error count from the last parse operation. </p>
  400. <p>This method returns the error count from the last parse operation. Note that this count is actually stored in the scanner, so this method simply returns what the scanner reports.</p>
  401. <dl class="section return"><dt>Returns</dt><dd>number of errors encountered during the latest parse operation. </dd></dl>
  402. </div>
  403. </div>
  404. <a class="anchor" id="a96bb93cd1b62dd75068325cbcdfbb581"></a>
  405. <div class="memitem">
  406. <div class="memproto">
  407. <table class="mlabels">
  408. <tr>
  409. <td class="mlabels-left">
  410. <table class="memname">
  411. <tr>
  412. <td class="memname">virtual <a class="el" href="classErrorHandler.html">ErrorHandler</a>* SAX2XMLReader::getErrorHandler </td>
  413. <td>(</td>
  414. <td class="paramname"></td><td>)</td>
  415. <td> const</td>
  416. </tr>
  417. </table>
  418. </td>
  419. <td class="mlabels-right">
  420. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  421. </tr>
  422. </table>
  423. </div><div class="memdoc">
  424. <p>This method returns the installed error handler. </p>
  425. <dl class="section return"><dt>Returns</dt><dd>A pointer to the installed error handler object. </dd></dl>
  426. </div>
  427. </div>
  428. <a class="anchor" id="a693dae9983a6d951c1fb36f0a9eab111"></a>
  429. <div class="memitem">
  430. <div class="memproto">
  431. <table class="mlabels">
  432. <tr>
  433. <td class="mlabels-left">
  434. <table class="memname">
  435. <tr>
  436. <td class="memname">virtual bool SAX2XMLReader::getExitOnFirstFatalError </td>
  437. <td>(</td>
  438. <td class="paramname"></td><td>)</td>
  439. <td> const</td>
  440. </tr>
  441. </table>
  442. </td>
  443. <td class="mlabels-right">
  444. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  445. </tr>
  446. </table>
  447. </div><div class="memdoc">
  448. <p>This method returns the state of the parser's exit-on-First-Fatal-Error flag. </p>
  449. <p>Or you can query the feature "http://apache.org/xml/features/continue-after-fatal-error" which indicates the opposite state.</p>
  450. <dl class="section return"><dt>Returns</dt><dd>true, if the parser is currently configured to exit on the first fatal error, false otherwise.</dd></dl>
  451. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#aceaca940ae26cc40234074f338632872" title="This method allows users to set the parser&#39;s behaviour when it encounters the first fatal error...">setExitOnFirstFatalError</a> </dd>
  452. <dd>
  453. <a class="el" href="classSAX2XMLReader.html#a6a704107fbb8c3552589236e959238be" title="Query the current state of any feature in a SAX2 XMLReader. ">getFeature</a> </dd></dl>
  454. </div>
  455. </div>
  456. <a class="anchor" id="a6a704107fbb8c3552589236e959238be"></a>
  457. <div class="memitem">
  458. <div class="memproto">
  459. <table class="mlabels">
  460. <tr>
  461. <td class="mlabels-left">
  462. <table class="memname">
  463. <tr>
  464. <td class="memname">virtual bool SAX2XMLReader::getFeature </td>
  465. <td>(</td>
  466. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  467. <td class="paramname"><em>name</em></td><td>)</td>
  468. <td> const</td>
  469. </tr>
  470. </table>
  471. </td>
  472. <td class="mlabels-right">
  473. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  474. </tr>
  475. </table>
  476. </div><div class="memdoc">
  477. <p>Query the current state of any feature in a SAX2 XMLReader. </p>
  478. <dl class="params"><dt>Parameters</dt><dd>
  479. <table class="params">
  480. <tr><td class="paramname">name</td><td>The unique identifier (URI) of the feature being set. </td></tr>
  481. </table>
  482. </dd>
  483. </dl>
  484. <dl class="section return"><dt>Returns</dt><dd>The current state of the feature. </dd></dl>
  485. <dl class="exception"><dt>Exceptions</dt><dd>
  486. <table class="exception">
  487. <tr><td class="paramname"><a class="el" href="classSAXNotRecognizedException.html">SAXNotRecognizedException</a></td><td>If the requested feature is not known. </td></tr>
  488. </table>
  489. </dd>
  490. </dl>
  491. </div>
  492. </div>
  493. <a class="anchor" id="aedc75b118c38b2beb51cb074f25c04b5"></a>
  494. <div class="memitem">
  495. <div class="memproto">
  496. <table class="mlabels">
  497. <tr>
  498. <td class="mlabels-left">
  499. <table class="memname">
  500. <tr>
  501. <td class="memname">virtual Grammar* SAX2XMLReader::getGrammar </td>
  502. <td>(</td>
  503. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  504. <td class="paramname"><em>nameSpaceKey</em></td><td>)</td>
  505. <td></td>
  506. </tr>
  507. </table>
  508. </td>
  509. <td class="mlabels-right">
  510. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  511. </tr>
  512. </table>
  513. </div><div class="memdoc">
  514. <p>Retrieve the grammar that is associated with the specified namespace key. </p>
  515. <dl class="params"><dt>Parameters</dt><dd>
  516. <table class="params">
  517. <tr><td class="paramname">nameSpaceKey</td><td>Namespace key </td></tr>
  518. </table>
  519. </dd>
  520. </dl>
  521. <dl class="section return"><dt>Returns</dt><dd>Grammar associated with the Namespace key. </dd></dl>
  522. </div>
  523. </div>
  524. <a class="anchor" id="a2279a6a050eef26c67ba11620044a0ec"></a>
  525. <div class="memitem">
  526. <div class="memproto">
  527. <table class="mlabels">
  528. <tr>
  529. <td class="mlabels-left">
  530. <table class="memname">
  531. <tr>
  532. <td class="memname">virtual <a class="el" href="classLexicalHandler.html">LexicalHandler</a>* SAX2XMLReader::getLexicalHandler </td>
  533. <td>(</td>
  534. <td class="paramname"></td><td>)</td>
  535. <td> const</td>
  536. </tr>
  537. </table>
  538. </td>
  539. <td class="mlabels-right">
  540. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  541. </tr>
  542. </table>
  543. </div><div class="memdoc">
  544. <p>This method returns the installed lexical handler. </p>
  545. <dl class="section return"><dt>Returns</dt><dd>A pointer to the installed lexical handler object. </dd></dl>
  546. </div>
  547. </div>
  548. <a class="anchor" id="a909627968ffa64bb14e673d5e2caf6f7"></a>
  549. <div class="memitem">
  550. <div class="memproto">
  551. <table class="mlabels">
  552. <tr>
  553. <td class="mlabels-left">
  554. <table class="memname">
  555. <tr>
  556. <td class="memname">virtual void* SAX2XMLReader::getProperty </td>
  557. <td>(</td>
  558. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  559. <td class="paramname"><em>name</em></td><td>)</td>
  560. <td> const</td>
  561. </tr>
  562. </table>
  563. </td>
  564. <td class="mlabels-right">
  565. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  566. </tr>
  567. </table>
  568. </div><div class="memdoc">
  569. <p>Query the current value of a property in a SAX2 XMLReader. </p>
  570. <p>The parser owns the returned pointer. The memory allocated for the returned pointer will be destroyed when the parser is deleted.</p>
  571. <p>To ensure accessibility of the returned information after the parser is deleted, callers need to copy and store the returned information somewhere else; otherwise you may get unexpected result. Since the returned pointer is a generic void pointer, see the SAX2 Programming Guide to learn exactly what type of property value each property returns for replication.</p>
  572. <dl class="params"><dt>Parameters</dt><dd>
  573. <table class="params">
  574. <tr><td class="paramname">name</td><td>The unique identifier (URI) of the property being set. </td></tr>
  575. </table>
  576. </dd>
  577. </dl>
  578. <dl class="section return"><dt>Returns</dt><dd>The current value of the property. The pointer spans the same life-time as the parser. A null pointer is returned if nothing was specified externally. </dd></dl>
  579. <dl class="exception"><dt>Exceptions</dt><dd>
  580. <table class="exception">
  581. <tr><td class="paramname"><a class="el" href="classSAXNotRecognizedException.html">SAXNotRecognizedException</a></td><td>If the requested property is not known. </td></tr>
  582. </table>
  583. </dd>
  584. </dl>
  585. </div>
  586. </div>
  587. <a class="anchor" id="aa294a6a334a9bfd2b5ec048419875f5f"></a>
  588. <div class="memitem">
  589. <div class="memproto">
  590. <table class="mlabels">
  591. <tr>
  592. <td class="mlabels-left">
  593. <table class="memname">
  594. <tr>
  595. <td class="memname">virtual Grammar* SAX2XMLReader::getRootGrammar </td>
  596. <td>(</td>
  597. <td class="paramname"></td><td>)</td>
  598. <td></td>
  599. </tr>
  600. </table>
  601. </td>
  602. <td class="mlabels-right">
  603. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  604. </tr>
  605. </table>
  606. </div><div class="memdoc">
  607. <p>Retrieve the grammar where the root element is declared. </p>
  608. <dl class="section return"><dt>Returns</dt><dd>Grammar where root element declared </dd></dl>
  609. </div>
  610. </div>
  611. <a class="anchor" id="a41aaef48a24fe4d1fcca07c98cd9acc2"></a>
  612. <div class="memitem">
  613. <div class="memproto">
  614. <table class="mlabels">
  615. <tr>
  616. <td class="mlabels-left">
  617. <table class="memname">
  618. <tr>
  619. <td class="memname">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a7647261a546ac47bda863a51d24ad898">XMLFilePos</a> SAX2XMLReader::getSrcOffset </td>
  620. <td>(</td>
  621. <td class="paramname"></td><td>)</td>
  622. <td> const</td>
  623. </tr>
  624. </table>
  625. </td>
  626. <td class="mlabels-right">
  627. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  628. </tr>
  629. </table>
  630. </div><div class="memdoc">
  631. <p>Returns the current src offset within the input source. </p>
  632. <p>To be used only while parsing is in progress.</p>
  633. <dl class="section return"><dt>Returns</dt><dd>offset within the input source </dd></dl>
  634. </div>
  635. </div>
  636. <a class="anchor" id="af20b4b419f902f2fc46bb2d7043077da"></a>
  637. <div class="memitem">
  638. <div class="memproto">
  639. <table class="mlabels">
  640. <tr>
  641. <td class="mlabels-left">
  642. <table class="memname">
  643. <tr>
  644. <td class="memname">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* SAX2XMLReader::getURIText </td>
  645. <td>(</td>
  646. <td class="paramtype">unsigned int&#160;</td>
  647. <td class="paramname"><em>uriId</em></td><td>)</td>
  648. <td> const</td>
  649. </tr>
  650. </table>
  651. </td>
  652. <td class="mlabels-right">
  653. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  654. </tr>
  655. </table>
  656. </div><div class="memdoc">
  657. <p>Returns the string corresponding to a URI id from the URI string pool. </p>
  658. <dl class="params"><dt>Parameters</dt><dd>
  659. <table class="params">
  660. <tr><td class="paramname">uriId</td><td>id of the string in the URI string pool. </td></tr>
  661. </table>
  662. </dd>
  663. </dl>
  664. <dl class="section return"><dt>Returns</dt><dd>URI string corresponding to the URI id. </dd></dl>
  665. </div>
  666. </div>
  667. <a class="anchor" id="af2d257d62e2b044095409d84181c6424"></a>
  668. <div class="memitem">
  669. <div class="memproto">
  670. <table class="mlabels">
  671. <tr>
  672. <td class="mlabels-left">
  673. <table class="memname">
  674. <tr>
  675. <td class="memname">virtual bool SAX2XMLReader::getValidationConstraintFatal </td>
  676. <td>(</td>
  677. <td class="paramname"></td><td>)</td>
  678. <td> const</td>
  679. </tr>
  680. </table>
  681. </td>
  682. <td class="mlabels-right">
  683. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  684. </tr>
  685. </table>
  686. </div><div class="memdoc">
  687. <p>This method returns the state of the parser's validation-constraint-fatal flag. </p>
  688. <p>Or you can query the feature "http://apache.org/xml/features/validation-error-as-fatal" which means the same thing.</p>
  689. <dl class="section return"><dt>Returns</dt><dd>true, if the parser is currently configured to set validation constraint errors as fatal, false otherwise.</dd></dl>
  690. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#a1e582e31531c645181c220c9ccbbe904" title="This method allows users to set the parser&#39;s behaviour when it encounters a validation constraint err...">setValidationConstraintFatal</a> </dd>
  691. <dd>
  692. <a class="el" href="classSAX2XMLReader.html#a6a704107fbb8c3552589236e959238be" title="Query the current state of any feature in a SAX2 XMLReader. ">getFeature</a> </dd></dl>
  693. </div>
  694. </div>
  695. <a class="anchor" id="aa9fd92dd2a348d0884c2ec8156c755db"></a>
  696. <div class="memitem">
  697. <div class="memproto">
  698. <table class="mlabels">
  699. <tr>
  700. <td class="mlabels-left">
  701. <table class="memname">
  702. <tr>
  703. <td class="memname">virtual <a class="el" href="classXMLValidator.html">XMLValidator</a>* SAX2XMLReader::getValidator </td>
  704. <td>(</td>
  705. <td class="paramname"></td><td>)</td>
  706. <td> const</td>
  707. </tr>
  708. </table>
  709. </td>
  710. <td class="mlabels-right">
  711. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  712. </tr>
  713. </table>
  714. </div><div class="memdoc">
  715. <p>This method is used to get the current validator. </p>
  716. <p><b><a class="el" href="classSAX2XMLReader.html">SAX2XMLReader</a> assumes responsibility for the validator. It will be deleted when the XMLReader is destroyed.</b></p>
  717. <dl class="section return"><dt>Returns</dt><dd>A pointer to the validator. An application should not deleted the object returned. </dd></dl>
  718. </div>
  719. </div>
  720. <a class="anchor" id="a5235f668aea5d4a799258338d01d7636"></a>
  721. <div class="memitem">
  722. <div class="memproto">
  723. <table class="mlabels">
  724. <tr>
  725. <td class="mlabels-left">
  726. <table class="memname">
  727. <tr>
  728. <td class="memname">virtual void SAX2XMLReader::installAdvDocHandler </td>
  729. <td>(</td>
  730. <td class="paramtype"><a class="el" href="classXMLDocumentHandler.html">XMLDocumentHandler</a> *const&#160;</td>
  731. <td class="paramname"><em>toInstall</em></td><td>)</td>
  732. <td></td>
  733. </tr>
  734. </table>
  735. </td>
  736. <td class="mlabels-right">
  737. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  738. </tr>
  739. </table>
  740. </div><div class="memdoc">
  741. <p>This method installs the specified 'advanced' document callback handler, thereby allowing the user to customize the processing, if they choose to do so. </p>
  742. <p>Any number of advanced callback handlers maybe installed.</p>
  743. <p>The methods in the advanced callback interface represent Xerces-C extensions. There is no specification for this interface.</p>
  744. <dl class="params"><dt>Parameters</dt><dd>
  745. <table class="params">
  746. <tr><td class="paramname">toInstall</td><td>A pointer to the users advanced callback handler.</td></tr>
  747. </table>
  748. </dd>
  749. </dl>
  750. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#a46885254749d80ef2dfb19ad8d48e1e0" title="This method removes the &#39;advanced&#39; document handler callback from the underlying parser scanner...">removeAdvDocHandler</a> </dd></dl>
  751. </div>
  752. </div>
  753. <a class="anchor" id="a3c8fab9b934a8d13e970244c6e1392be"></a>
  754. <div class="memitem">
  755. <div class="memproto">
  756. <table class="mlabels">
  757. <tr>
  758. <td class="mlabels-left">
  759. <table class="memname">
  760. <tr>
  761. <td class="memname">virtual Grammar* SAX2XMLReader::loadGrammar </td>
  762. <td>(</td>
  763. <td class="paramtype">const <a class="el" href="classInputSource.html">InputSource</a> &amp;&#160;</td>
  764. <td class="paramname"><em>source</em>, </td>
  765. </tr>
  766. <tr>
  767. <td class="paramkey"></td>
  768. <td></td>
  769. <td class="paramtype">const Grammar::GrammarType&#160;</td>
  770. <td class="paramname"><em>grammarType</em>, </td>
  771. </tr>
  772. <tr>
  773. <td class="paramkey"></td>
  774. <td></td>
  775. <td class="paramtype">const bool&#160;</td>
  776. <td class="paramname"><em>toCache</em> = <code>false</code>&#160;</td>
  777. </tr>
  778. <tr>
  779. <td></td>
  780. <td>)</td>
  781. <td></td><td></td>
  782. </tr>
  783. </table>
  784. </td>
  785. <td class="mlabels-right">
  786. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  787. </tr>
  788. </table>
  789. </div><div class="memdoc">
  790. <p>Preparse schema grammar (XML Schema, DTD, etc.) via an input source object. </p>
  791. <p>This method invokes the preparsing process on a schema grammar XML file specified by the SAX <a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a> parameter. If the 'toCache' flag is enabled, the parser will cache the grammars for re-use. If a grammar key is found in the pool, no caching of any grammar will take place.</p>
  792. <dl class="params"><dt>Parameters</dt><dd>
  793. <table class="params">
  794. <tr><td class="paramname">source</td><td>A const reference to the SAX <a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a> object which points to the schema grammar file to be preparsed. </td></tr>
  795. <tr><td class="paramname">grammarType</td><td>The grammar type (Schema or DTD). </td></tr>
  796. <tr><td class="paramname">toCache</td><td>If <code>true</code>, we cache the preparsed grammar, otherwise, no caching. Default is <code>false</code>. </td></tr>
  797. </table>
  798. </dd>
  799. </dl>
  800. <dl class="section return"><dt>Returns</dt><dd>The preparsed schema grammar object (SchemaGrammar or DTDGrammar). That grammar object is owned by the parser.</dd></dl>
  801. <dl class="exception"><dt>Exceptions</dt><dd>
  802. <table class="exception">
  803. <tr><td class="paramname"><a class="el" href="classSAXException.html" title="Encapsulate a general SAX error or warning. ">SAXException</a></td><td>Any SAX exception, possibly wrapping another exception. </td></tr>
  804. <tr><td class="paramname"><a class="el" href="classXMLException.html">XMLException</a></td><td>An exception from the parser or client handler code. </td></tr>
  805. <tr><td class="paramname"><a class="el" href="classDOMException.html">DOMException</a></td><td>A DOM exception as per DOM spec.</td></tr>
  806. </table>
  807. </dd>
  808. </dl>
  809. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classInputSource.html#a601a7aa7124e2d8e9664eda9aea6b622" title="Default constructor. ">InputSource::InputSource</a> </dd></dl>
  810. </div>
  811. </div>
  812. <a class="anchor" id="ad3afe06b9aea85b62b205f63c3ff2a29"></a>
  813. <div class="memitem">
  814. <div class="memproto">
  815. <table class="mlabels">
  816. <tr>
  817. <td class="mlabels-left">
  818. <table class="memname">
  819. <tr>
  820. <td class="memname">virtual Grammar* SAX2XMLReader::loadGrammar </td>
  821. <td>(</td>
  822. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  823. <td class="paramname"><em>systemId</em>, </td>
  824. </tr>
  825. <tr>
  826. <td class="paramkey"></td>
  827. <td></td>
  828. <td class="paramtype">const Grammar::GrammarType&#160;</td>
  829. <td class="paramname"><em>grammarType</em>, </td>
  830. </tr>
  831. <tr>
  832. <td class="paramkey"></td>
  833. <td></td>
  834. <td class="paramtype">const bool&#160;</td>
  835. <td class="paramname"><em>toCache</em> = <code>false</code>&#160;</td>
  836. </tr>
  837. <tr>
  838. <td></td>
  839. <td>)</td>
  840. <td></td><td></td>
  841. </tr>
  842. </table>
  843. </td>
  844. <td class="mlabels-right">
  845. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  846. </tr>
  847. </table>
  848. </div><div class="memdoc">
  849. <p>Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL. </p>
  850. <p>This method invokes the preparsing process on a schema grammar XML file specified by the file path parameter. If the 'toCache' flag is enabled, the parser will cache the grammars for re-use. If a grammar key is found in the pool, no caching of any grammar will take place.</p>
  851. <dl class="params"><dt>Parameters</dt><dd>
  852. <table class="params">
  853. <tr><td class="paramname">systemId</td><td>A const XMLCh pointer to the Unicode string which contains the path to the XML grammar file to be preparsed. </td></tr>
  854. <tr><td class="paramname">grammarType</td><td>The grammar type (Schema or DTD). </td></tr>
  855. <tr><td class="paramname">toCache</td><td>If <code>true</code>, we cache the preparsed grammar, otherwise, no caching. Default is <code>false</code>. </td></tr>
  856. </table>
  857. </dd>
  858. </dl>
  859. <dl class="section return"><dt>Returns</dt><dd>The preparsed schema grammar object (SchemaGrammar or DTDGrammar). That grammar object is owned by the parser.</dd></dl>
  860. <dl class="exception"><dt>Exceptions</dt><dd>
  861. <table class="exception">
  862. <tr><td class="paramname"><a class="el" href="classSAXException.html" title="Encapsulate a general SAX error or warning. ">SAXException</a></td><td>Any SAX exception, possibly wrapping another exception. </td></tr>
  863. <tr><td class="paramname"><a class="el" href="classXMLException.html">XMLException</a></td><td>An exception from the parser or client handler code. </td></tr>
  864. <tr><td class="paramname"><a class="el" href="classDOMException.html">DOMException</a></td><td>A DOM exception as per DOM spec. </td></tr>
  865. </table>
  866. </dd>
  867. </dl>
  868. </div>
  869. </div>
  870. <a class="anchor" id="a026f2f7f663f705f6bf56e6934d70416"></a>
  871. <div class="memitem">
  872. <div class="memproto">
  873. <table class="mlabels">
  874. <tr>
  875. <td class="mlabels-left">
  876. <table class="memname">
  877. <tr>
  878. <td class="memname">virtual Grammar* SAX2XMLReader::loadGrammar </td>
  879. <td>(</td>
  880. <td class="paramtype">const char *const&#160;</td>
  881. <td class="paramname"><em>systemId</em>, </td>
  882. </tr>
  883. <tr>
  884. <td class="paramkey"></td>
  885. <td></td>
  886. <td class="paramtype">const Grammar::GrammarType&#160;</td>
  887. <td class="paramname"><em>grammarType</em>, </td>
  888. </tr>
  889. <tr>
  890. <td class="paramkey"></td>
  891. <td></td>
  892. <td class="paramtype">const bool&#160;</td>
  893. <td class="paramname"><em>toCache</em> = <code>false</code>&#160;</td>
  894. </tr>
  895. <tr>
  896. <td></td>
  897. <td>)</td>
  898. <td></td><td></td>
  899. </tr>
  900. </table>
  901. </td>
  902. <td class="mlabels-right">
  903. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  904. </tr>
  905. </table>
  906. </div><div class="memdoc">
  907. <p>Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL. </p>
  908. <p>This method invokes the preparsing process on a schema grammar XML file specified by the file path parameter. If the 'toCache' flag is enabled, the parser will cache the grammars for re-use. If a grammar key is found in the pool, no caching of any grammar will take place.</p>
  909. <dl class="params"><dt>Parameters</dt><dd>
  910. <table class="params">
  911. <tr><td class="paramname">systemId</td><td>A const char pointer to a native string which contains the path to the XML grammar file to be preparsed. </td></tr>
  912. <tr><td class="paramname">grammarType</td><td>The grammar type (Schema or DTD). </td></tr>
  913. <tr><td class="paramname">toCache</td><td>If <code>true</code>, we cache the preparsed grammar, otherwise, no caching. Default is <code>false</code>. </td></tr>
  914. </table>
  915. </dd>
  916. </dl>
  917. <dl class="section return"><dt>Returns</dt><dd>The preparsed schema grammar object (SchemaGrammar or DTDGrammar). That grammar object is owned by the parser.</dd></dl>
  918. <dl class="exception"><dt>Exceptions</dt><dd>
  919. <table class="exception">
  920. <tr><td class="paramname"><a class="el" href="classSAXException.html" title="Encapsulate a general SAX error or warning. ">SAXException</a></td><td>Any SAX exception, possibly wrapping another exception. </td></tr>
  921. <tr><td class="paramname"><a class="el" href="classXMLException.html">XMLException</a></td><td>An exception from the parser or client handler code. </td></tr>
  922. <tr><td class="paramname"><a class="el" href="classDOMException.html">DOMException</a></td><td>A DOM exception as per DOM spec. </td></tr>
  923. </table>
  924. </dd>
  925. </dl>
  926. </div>
  927. </div>
  928. <a class="anchor" id="a284811d3b9785e0898093638ab17662d"></a>
  929. <div class="memitem">
  930. <div class="memproto">
  931. <table class="mlabels">
  932. <tr>
  933. <td class="mlabels-left">
  934. <table class="memname">
  935. <tr>
  936. <td class="memname">virtual void SAX2XMLReader::parse </td>
  937. <td>(</td>
  938. <td class="paramtype">const <a class="el" href="classInputSource.html">InputSource</a> &amp;&#160;</td>
  939. <td class="paramname"><em>source</em></td><td>)</td>
  940. <td></td>
  941. </tr>
  942. </table>
  943. </td>
  944. <td class="mlabels-right">
  945. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  946. </tr>
  947. </table>
  948. </div><div class="memdoc">
  949. <p>Parse an XML document. </p>
  950. <p>The application can use this method to instruct the SAX parser to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).</p>
  951. <p>Applications may not invoke this method while a parse is in progress (they should create a new <a class="el" href="classParser.html" title="Basic interface for SAX (Simple API for XML) parsers. ">Parser</a> instead for each additional XML document). Once a parse is complete, an application may reuse the same <a class="el" href="classParser.html" title="Basic interface for SAX (Simple API for XML) parsers. ">Parser</a> object, possibly with a different input source.</p>
  952. <dl class="params"><dt>Parameters</dt><dd>
  953. <table class="params">
  954. <tr><td class="paramname">source</td><td>The input source for the top-level of the XML document. </td></tr>
  955. </table>
  956. </dd>
  957. </dl>
  958. <dl class="exception"><dt>Exceptions</dt><dd>
  959. <table class="exception">
  960. <tr><td class="paramname"><a class="el" href="classSAXException.html" title="Encapsulate a general SAX error or warning. ">SAXException</a></td><td>Any SAX exception, possibly wrapping another exception. </td></tr>
  961. <tr><td class="paramname"><a class="el" href="classXMLException.html">XMLException</a></td><td>An exception from the parser or client handler code. </td></tr>
  962. </table>
  963. </dd>
  964. </dl>
  965. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classInputSource.html#a601a7aa7124e2d8e9664eda9aea6b622" title="Default constructor. ">InputSource::InputSource</a> </dd>
  966. <dd>
  967. <a class="el" href="classSAX2XMLReader.html#ab4621486a9776d480ec10e596a4d66a6" title="Allow an application to register a custom entity resolver. ">setEntityResolver</a> </dd>
  968. <dd>
  969. <a class="el" href="classSAX2XMLReader.html#ab862874149da5e744a04f1bc6de60ff4" title="Allow an application to register a DTD event handler. ">setDTDHandler</a> </dd>
  970. <dd>
  971. <a class="el" href="classSAX2XMLReader.html#aa1885becac34443e9648ccaeeed733f5" title="Allow an application to register a document event handler. ">setContentHandler</a> </dd>
  972. <dd>
  973. <a class="el" href="classSAX2XMLReader.html#a910e9acbec9c8bbd4ff3fdb92c76cf0e" title="Allow an application to register an error event handler. ">setErrorHandler</a> </dd></dl>
  974. </div>
  975. </div>
  976. <a class="anchor" id="afaa08affc814631f5a6059e9611b84e3"></a>
  977. <div class="memitem">
  978. <div class="memproto">
  979. <table class="mlabels">
  980. <tr>
  981. <td class="mlabels-left">
  982. <table class="memname">
  983. <tr>
  984. <td class="memname">virtual void SAX2XMLReader::parse </td>
  985. <td>(</td>
  986. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  987. <td class="paramname"><em>systemId</em></td><td>)</td>
  988. <td></td>
  989. </tr>
  990. </table>
  991. </td>
  992. <td class="mlabels-right">
  993. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  994. </tr>
  995. </table>
  996. </div><div class="memdoc">
  997. <p>Parse an XML document from a system identifier (URI). </p>
  998. <p>This method is a shortcut for the common case of reading a document from a system identifier. It is the exact equivalent of the following:</p>
  999. <p>parse(new URLInputSource(systemId));</p>
  1000. <p>If the system identifier is a URL, it must be fully resolved by the application before it is passed to the parser.</p>
  1001. <dl class="params"><dt>Parameters</dt><dd>
  1002. <table class="params">
  1003. <tr><td class="paramname">systemId</td><td>The system identifier (URI). </td></tr>
  1004. </table>
  1005. </dd>
  1006. </dl>
  1007. <dl class="exception"><dt>Exceptions</dt><dd>
  1008. <table class="exception">
  1009. <tr><td class="paramname"><a class="el" href="classSAXException.html" title="Encapsulate a general SAX error or warning. ">SAXException</a></td><td>Any SAX exception, possibly wrapping another exception. </td></tr>
  1010. <tr><td class="paramname"><a class="el" href="classXMLException.html">XMLException</a></td><td>An exception from the parser or client handler code. </td></tr>
  1011. </table>
  1012. </dd>
  1013. </dl>
  1014. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#a284811d3b9785e0898093638ab17662d" title="Parse an XML document. ">parse(const InputSource&amp;)</a> </dd></dl>
  1015. </div>
  1016. </div>
  1017. <a class="anchor" id="ab063964b062ebbb98a74347354877f45"></a>
  1018. <div class="memitem">
  1019. <div class="memproto">
  1020. <table class="mlabels">
  1021. <tr>
  1022. <td class="mlabels-left">
  1023. <table class="memname">
  1024. <tr>
  1025. <td class="memname">virtual void SAX2XMLReader::parse </td>
  1026. <td>(</td>
  1027. <td class="paramtype">const char *const&#160;</td>
  1028. <td class="paramname"><em>systemId</em></td><td>)</td>
  1029. <td></td>
  1030. </tr>
  1031. </table>
  1032. </td>
  1033. <td class="mlabels-right">
  1034. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1035. </tr>
  1036. </table>
  1037. </div><div class="memdoc">
  1038. <p>Parse an XML document from a system identifier (URI). </p>
  1039. <p>This method is a shortcut for the common case of reading a document from a system identifier. It is the exact equivalent of the following:</p>
  1040. <p>parse(new URLInputSource(systemId));</p>
  1041. <p>If the system identifier is a URL, it must be fully resolved by the application before it is passed to the parser.</p>
  1042. <dl class="params"><dt>Parameters</dt><dd>
  1043. <table class="params">
  1044. <tr><td class="paramname">systemId</td><td>The system identifier (URI). </td></tr>
  1045. </table>
  1046. </dd>
  1047. </dl>
  1048. <dl class="exception"><dt>Exceptions</dt><dd>
  1049. <table class="exception">
  1050. <tr><td class="paramname"><a class="el" href="classSAXException.html" title="Encapsulate a general SAX error or warning. ">SAXException</a></td><td>Any SAX exception, possibly wrapping another exception. </td></tr>
  1051. <tr><td class="paramname"><a class="el" href="classXMLException.html">XMLException</a></td><td>An exception from the parser or client handler code. </td></tr>
  1052. </table>
  1053. </dd>
  1054. </dl>
  1055. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#a284811d3b9785e0898093638ab17662d" title="Parse an XML document. ">parse(const InputSource&amp;)</a> </dd></dl>
  1056. </div>
  1057. </div>
  1058. <a class="anchor" id="ae3be1a347fa03c6f6c08d6298702905c"></a>
  1059. <div class="memitem">
  1060. <div class="memproto">
  1061. <table class="mlabels">
  1062. <tr>
  1063. <td class="mlabels-left">
  1064. <table class="memname">
  1065. <tr>
  1066. <td class="memname">virtual bool SAX2XMLReader::parseFirst </td>
  1067. <td>(</td>
  1068. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  1069. <td class="paramname"><em>systemId</em>, </td>
  1070. </tr>
  1071. <tr>
  1072. <td class="paramkey"></td>
  1073. <td></td>
  1074. <td class="paramtype">XMLPScanToken &amp;&#160;</td>
  1075. <td class="paramname"><em>toFill</em>&#160;</td>
  1076. </tr>
  1077. <tr>
  1078. <td></td>
  1079. <td>)</td>
  1080. <td></td><td></td>
  1081. </tr>
  1082. </table>
  1083. </td>
  1084. <td class="mlabels-right">
  1085. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1086. </tr>
  1087. </table>
  1088. </div><div class="memdoc">
  1089. <p>Begin a progressive parse operation. </p>
  1090. <p>This method is used to start a progressive parse on a XML file. To continue parsing, subsequent calls must be to the parseNext method.</p>
  1091. <p>It scans through the prolog and returns a token to be used on subsequent scanNext() calls. If the return value is true, then the token is legal and ready for further use. If it returns false, then the scan of the prolog failed and the token is not going to work on subsequent scanNext() calls.</p>
  1092. <dl class="params"><dt>Parameters</dt><dd>
  1093. <table class="params">
  1094. <tr><td class="paramname">systemId</td><td>A pointer to a Unicode string representing the path to the XML file to be parsed. </td></tr>
  1095. <tr><td class="paramname">toFill</td><td>A token maintaing state information to maintain internal consistency between invocation of 'parseNext' calls.</td></tr>
  1096. </table>
  1097. </dd>
  1098. </dl>
  1099. <dl class="section return"><dt>Returns</dt><dd>'true', if successful in parsing the prolog. It indicates the user can go ahead with parsing the rest of the file. It returns 'false' to indicate that the parser could parse the prolog (which means the token will not be valid.)</dd></dl>
  1100. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#af5369c76d498e87fdb24c36fc4100fb0" title="Continue a progressive parse operation. ">parseNext</a> </dd>
  1101. <dd>
  1102. <a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c" title="Begin a progressive parse operation. ">parseFirst</a>(char*,...) </dd>
  1103. <dd>
  1104. <a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c" title="Begin a progressive parse operation. ">parseFirst</a>(<a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a>&amp;,...) </dd></dl>
  1105. </div>
  1106. </div>
  1107. <a class="anchor" id="aad62c959271689d53d14fc772350ba41"></a>
  1108. <div class="memitem">
  1109. <div class="memproto">
  1110. <table class="mlabels">
  1111. <tr>
  1112. <td class="mlabels-left">
  1113. <table class="memname">
  1114. <tr>
  1115. <td class="memname">virtual bool SAX2XMLReader::parseFirst </td>
  1116. <td>(</td>
  1117. <td class="paramtype">const char *const&#160;</td>
  1118. <td class="paramname"><em>systemId</em>, </td>
  1119. </tr>
  1120. <tr>
  1121. <td class="paramkey"></td>
  1122. <td></td>
  1123. <td class="paramtype">XMLPScanToken &amp;&#160;</td>
  1124. <td class="paramname"><em>toFill</em>&#160;</td>
  1125. </tr>
  1126. <tr>
  1127. <td></td>
  1128. <td>)</td>
  1129. <td></td><td></td>
  1130. </tr>
  1131. </table>
  1132. </td>
  1133. <td class="mlabels-right">
  1134. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1135. </tr>
  1136. </table>
  1137. </div><div class="memdoc">
  1138. <p>Begin a progressive parse operation. </p>
  1139. <p>This method is used to start a progressive parse on a XML file. To continue parsing, subsequent calls must be to the parseNext method.</p>
  1140. <p>It scans through the prolog and returns a token to be used on subsequent scanNext() calls. If the return value is true, then the token is legal and ready for further use. If it returns false, then the scan of the prolog failed and the token is not going to work on subsequent scanNext() calls.</p>
  1141. <dl class="params"><dt>Parameters</dt><dd>
  1142. <table class="params">
  1143. <tr><td class="paramname">systemId</td><td>A pointer to a regular native string representing the path to the XML file to be parsed. </td></tr>
  1144. <tr><td class="paramname">toFill</td><td>A token maintaing state information to maintain internal consistency between invocation of 'parseNext' calls.</td></tr>
  1145. </table>
  1146. </dd>
  1147. </dl>
  1148. <dl class="section return"><dt>Returns</dt><dd>'true', if successful in parsing the prolog. It indicates the user can go ahead with parsing the rest of the file. It returns 'false' to indicate that the parser could not parse the prolog.</dd></dl>
  1149. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#af5369c76d498e87fdb24c36fc4100fb0" title="Continue a progressive parse operation. ">parseNext</a> </dd>
  1150. <dd>
  1151. <a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c" title="Begin a progressive parse operation. ">parseFirst</a>(XMLCh*,...) </dd>
  1152. <dd>
  1153. <a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c" title="Begin a progressive parse operation. ">parseFirst</a>(<a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a>&amp;,...) </dd></dl>
  1154. </div>
  1155. </div>
  1156. <a class="anchor" id="ab3bd9b161c22c87564697edc56560c38"></a>
  1157. <div class="memitem">
  1158. <div class="memproto">
  1159. <table class="mlabels">
  1160. <tr>
  1161. <td class="mlabels-left">
  1162. <table class="memname">
  1163. <tr>
  1164. <td class="memname">virtual bool SAX2XMLReader::parseFirst </td>
  1165. <td>(</td>
  1166. <td class="paramtype">const <a class="el" href="classInputSource.html">InputSource</a> &amp;&#160;</td>
  1167. <td class="paramname"><em>source</em>, </td>
  1168. </tr>
  1169. <tr>
  1170. <td class="paramkey"></td>
  1171. <td></td>
  1172. <td class="paramtype">XMLPScanToken &amp;&#160;</td>
  1173. <td class="paramname"><em>toFill</em>&#160;</td>
  1174. </tr>
  1175. <tr>
  1176. <td></td>
  1177. <td>)</td>
  1178. <td></td><td></td>
  1179. </tr>
  1180. </table>
  1181. </td>
  1182. <td class="mlabels-right">
  1183. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1184. </tr>
  1185. </table>
  1186. </div><div class="memdoc">
  1187. <p>Begin a progressive parse operation. </p>
  1188. <p>This method is used to start a progressive parse on a XML file. To continue parsing, subsequent calls must be to the parseNext method.</p>
  1189. <p>It scans through the prolog and returns a token to be used on subsequent scanNext() calls. If the return value is true, then the token is legal and ready for further use. If it returns false, then the scan of the prolog failed and the token is not going to work on subsequent scanNext() calls.</p>
  1190. <dl class="params"><dt>Parameters</dt><dd>
  1191. <table class="params">
  1192. <tr><td class="paramname">source</td><td>A const reference to the <a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a> object which points to the XML file to be parsed. </td></tr>
  1193. <tr><td class="paramname">toFill</td><td>A token maintaing state information to maintain internal consistency between invocation of 'parseNext' calls.</td></tr>
  1194. </table>
  1195. </dd>
  1196. </dl>
  1197. <dl class="section return"><dt>Returns</dt><dd>'true', if successful in parsing the prolog. It indicates the user can go ahead with parsing the rest of the file. It returns 'false' to indicate that the parser could not parse the prolog.</dd></dl>
  1198. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#af5369c76d498e87fdb24c36fc4100fb0" title="Continue a progressive parse operation. ">parseNext</a> </dd>
  1199. <dd>
  1200. <a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c" title="Begin a progressive parse operation. ">parseFirst</a>(XMLCh*,...) </dd>
  1201. <dd>
  1202. <a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c" title="Begin a progressive parse operation. ">parseFirst</a>(char*,...) </dd></dl>
  1203. </div>
  1204. </div>
  1205. <a class="anchor" id="af5369c76d498e87fdb24c36fc4100fb0"></a>
  1206. <div class="memitem">
  1207. <div class="memproto">
  1208. <table class="mlabels">
  1209. <tr>
  1210. <td class="mlabels-left">
  1211. <table class="memname">
  1212. <tr>
  1213. <td class="memname">virtual bool SAX2XMLReader::parseNext </td>
  1214. <td>(</td>
  1215. <td class="paramtype">XMLPScanToken &amp;&#160;</td>
  1216. <td class="paramname"><em>token</em></td><td>)</td>
  1217. <td></td>
  1218. </tr>
  1219. </table>
  1220. </td>
  1221. <td class="mlabels-right">
  1222. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1223. </tr>
  1224. </table>
  1225. </div><div class="memdoc">
  1226. <p>Continue a progressive parse operation. </p>
  1227. <p>This method is used to continue with progressive parsing of XML files started by a call to 'parseFirst' method.</p>
  1228. <p>It parses the XML file and stops as soon as it comes across a XML token (as defined in the XML specification). Relevant callback handlers are invoked as required by the SAX specification.</p>
  1229. <dl class="params"><dt>Parameters</dt><dd>
  1230. <table class="params">
  1231. <tr><td class="paramname">token</td><td>A token maintaing state information to maintain internal consistency between invocation of 'parseNext' calls.</td></tr>
  1232. </table>
  1233. </dd>
  1234. </dl>
  1235. <dl class="section return"><dt>Returns</dt><dd>'true', if successful in parsing the next XML token. It indicates the user can go ahead with parsing the rest of the file. It returns 'false' to indicate that the parser could not find next token as per the XML specification production rule.</dd></dl>
  1236. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c" title="Begin a progressive parse operation. ">parseFirst</a>(XMLCh*,...) </dd>
  1237. <dd>
  1238. <a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c" title="Begin a progressive parse operation. ">parseFirst</a>(char*,...) </dd>
  1239. <dd>
  1240. <a class="el" href="classSAX2XMLReader.html#ae3be1a347fa03c6f6c08d6298702905c" title="Begin a progressive parse operation. ">parseFirst</a>(<a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a>&amp;,...) </dd></dl>
  1241. </div>
  1242. </div>
  1243. <a class="anchor" id="a58e67a11484763eb0eb705d4cfc3cbf5"></a>
  1244. <div class="memitem">
  1245. <div class="memproto">
  1246. <table class="mlabels">
  1247. <tr>
  1248. <td class="mlabels-left">
  1249. <table class="memname">
  1250. <tr>
  1251. <td class="memname">virtual void SAX2XMLReader::parseReset </td>
  1252. <td>(</td>
  1253. <td class="paramtype">XMLPScanToken &amp;&#160;</td>
  1254. <td class="paramname"><em>token</em></td><td>)</td>
  1255. <td></td>
  1256. </tr>
  1257. </table>
  1258. </td>
  1259. <td class="mlabels-right">
  1260. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1261. </tr>
  1262. </table>
  1263. </div><div class="memdoc">
  1264. <p>Reset the parser after a progressive parse. </p>
  1265. <p>If a progressive parse loop exits before the end of the document is reached, the parser has no way of knowing this. So it will leave open any files or sockets or memory buffers that were in use at the time that the parse loop exited.</p>
  1266. <p>The next parse operation will cause these open files and such to be closed, but the next parse operation might occur at some unknown future point. To avoid this problem, you should reset the parser if you exit the loop early.</p>
  1267. <p>If you exited because of an error, then this cleanup will be done for you. Its only when you exit the file prematurely of your own accord, because you've found what you wanted in the file most likely.</p>
  1268. <dl class="params"><dt>Parameters</dt><dd>
  1269. <table class="params">
  1270. <tr><td class="paramname">token</td><td>A token maintaing state information to maintain internal consistency between invocation of 'parseNext' calls. </td></tr>
  1271. </table>
  1272. </dd>
  1273. </dl>
  1274. </div>
  1275. </div>
  1276. <a class="anchor" id="a46885254749d80ef2dfb19ad8d48e1e0"></a>
  1277. <div class="memitem">
  1278. <div class="memproto">
  1279. <table class="mlabels">
  1280. <tr>
  1281. <td class="mlabels-left">
  1282. <table class="memname">
  1283. <tr>
  1284. <td class="memname">virtual bool SAX2XMLReader::removeAdvDocHandler </td>
  1285. <td>(</td>
  1286. <td class="paramtype"><a class="el" href="classXMLDocumentHandler.html">XMLDocumentHandler</a> *const&#160;</td>
  1287. <td class="paramname"><em>toRemove</em></td><td>)</td>
  1288. <td></td>
  1289. </tr>
  1290. </table>
  1291. </td>
  1292. <td class="mlabels-right">
  1293. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1294. </tr>
  1295. </table>
  1296. </div><div class="memdoc">
  1297. <p>This method removes the 'advanced' document handler callback from the underlying parser scanner. </p>
  1298. <p>If no handler is installed, advanced callbacks are not invoked by the scanner. </p><dl class="params"><dt>Parameters</dt><dd>
  1299. <table class="params">
  1300. <tr><td class="paramname">toRemove</td><td>A pointer to the advanced callback handler which should be removed.</td></tr>
  1301. </table>
  1302. </dd>
  1303. </dl>
  1304. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#a5235f668aea5d4a799258338d01d7636" title="This method installs the specified &#39;advanced&#39; document callback handler, thereby allowing the user to...">installAdvDocHandler</a> </dd></dl>
  1305. </div>
  1306. </div>
  1307. <a class="anchor" id="a8ade5e379ef8233584695786d5851714"></a>
  1308. <div class="memitem">
  1309. <div class="memproto">
  1310. <table class="mlabels">
  1311. <tr>
  1312. <td class="mlabels-left">
  1313. <table class="memname">
  1314. <tr>
  1315. <td class="memname">virtual void SAX2XMLReader::resetCachedGrammarPool </td>
  1316. <td>(</td>
  1317. <td class="paramname"></td><td>)</td>
  1318. <td></td>
  1319. </tr>
  1320. </table>
  1321. </td>
  1322. <td class="mlabels-right">
  1323. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1324. </tr>
  1325. </table>
  1326. </div><div class="memdoc">
  1327. <p>Clear the cached grammar pool. </p>
  1328. </div>
  1329. </div>
  1330. <a class="anchor" id="aa1885becac34443e9648ccaeeed733f5"></a>
  1331. <div class="memitem">
  1332. <div class="memproto">
  1333. <table class="mlabels">
  1334. <tr>
  1335. <td class="mlabels-left">
  1336. <table class="memname">
  1337. <tr>
  1338. <td class="memname">virtual void SAX2XMLReader::setContentHandler </td>
  1339. <td>(</td>
  1340. <td class="paramtype"><a class="el" href="classContentHandler.html">ContentHandler</a> *const&#160;</td>
  1341. <td class="paramname"><em>handler</em></td><td>)</td>
  1342. <td></td>
  1343. </tr>
  1344. </table>
  1345. </td>
  1346. <td class="mlabels-right">
  1347. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1348. </tr>
  1349. </table>
  1350. </div><div class="memdoc">
  1351. <p>Allow an application to register a document event handler. </p>
  1352. <p>If the application does not register a document handler, all document events reported by the SAX parser will be silently ignored (this is the default behaviour implemented by <a class="el" href="classHandlerBase.html" title="Default base class for handlers. ">HandlerBase</a>).</p>
  1353. <p>Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.</p>
  1354. <dl class="params"><dt>Parameters</dt><dd>
  1355. <table class="params">
  1356. <tr><td class="paramname">handler</td><td>The document handler. </td></tr>
  1357. </table>
  1358. </dd>
  1359. </dl>
  1360. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classContentHandler.html#a5e5673f802f184ce29cd2ffdd8f827e8" title="Default constructor. ">ContentHandler::ContentHandler</a> </dd>
  1361. <dd>
  1362. <a class="el" href="classHandlerBase.html#aa9bbcdb7958bace9296940ab702ef367">HandlerBase::HandlerBase</a> </dd></dl>
  1363. </div>
  1364. </div>
  1365. <a class="anchor" id="a60b5233e334c78920a8361cec2a81429"></a>
  1366. <div class="memitem">
  1367. <div class="memproto">
  1368. <table class="mlabels">
  1369. <tr>
  1370. <td class="mlabels-left">
  1371. <table class="memname">
  1372. <tr>
  1373. <td class="memname">virtual void SAX2XMLReader::setDeclarationHandler </td>
  1374. <td>(</td>
  1375. <td class="paramtype"><a class="el" href="classDeclHandler.html">DeclHandler</a> *const&#160;</td>
  1376. <td class="paramname"><em>handler</em></td><td>)</td>
  1377. <td></td>
  1378. </tr>
  1379. </table>
  1380. </td>
  1381. <td class="mlabels-right">
  1382. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1383. </tr>
  1384. </table>
  1385. </div><div class="memdoc">
  1386. <p>Allow an application to register a declaration event handler. </p>
  1387. <p>If the application does not register a declaration handler, all events reported by the SAX parser will be silently ignored. (this is the default behaviour implemented by <a class="el" href="classDefaultHandler.html" title="Default base class for SAX2 handlers. ">DefaultHandler</a>).</p>
  1388. <p>Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.</p>
  1389. <dl class="params"><dt>Parameters</dt><dd>
  1390. <table class="params">
  1391. <tr><td class="paramname">handler</td><td>The DTD declaration handler. </td></tr>
  1392. </table>
  1393. </dd>
  1394. </dl>
  1395. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classDeclHandler.html#a3155ea1a3555f906321735d78e330f05" title="Default constructor. ">DeclHandler::DeclHandler</a> </dd>
  1396. <dd>
  1397. <a class="el" href="classSAXException.html#ae1c8ab9b99e3c43572c1567e72c652e4" title="Default constructor. ">SAXException::SAXException</a> </dd>
  1398. <dd>
  1399. <a class="el" href="classDefaultHandler.html#ab3aff728663a1c0aa9a1c0ed517f6806">DefaultHandler::DefaultHandler</a> </dd></dl>
  1400. </div>
  1401. </div>
  1402. <a class="anchor" id="ab862874149da5e744a04f1bc6de60ff4"></a>
  1403. <div class="memitem">
  1404. <div class="memproto">
  1405. <table class="mlabels">
  1406. <tr>
  1407. <td class="mlabels-left">
  1408. <table class="memname">
  1409. <tr>
  1410. <td class="memname">virtual void SAX2XMLReader::setDTDHandler </td>
  1411. <td>(</td>
  1412. <td class="paramtype"><a class="el" href="classDTDHandler.html">DTDHandler</a> *const&#160;</td>
  1413. <td class="paramname"><em>handler</em></td><td>)</td>
  1414. <td></td>
  1415. </tr>
  1416. </table>
  1417. </td>
  1418. <td class="mlabels-right">
  1419. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1420. </tr>
  1421. </table>
  1422. </div><div class="memdoc">
  1423. <p>Allow an application to register a DTD event handler. </p>
  1424. <p>If the application does not register a DTD handler, all DTD events reported by the SAX parser will be silently ignored (this is the default behaviour implemented by <a class="el" href="classHandlerBase.html" title="Default base class for handlers. ">HandlerBase</a>).</p>
  1425. <p>Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.</p>
  1426. <dl class="params"><dt>Parameters</dt><dd>
  1427. <table class="params">
  1428. <tr><td class="paramname">handler</td><td>The DTD handler. </td></tr>
  1429. </table>
  1430. </dd>
  1431. </dl>
  1432. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classDTDHandler.html#a1d17e15d976164f6d55f542759eea182" title="Default Constructor. ">DTDHandler::DTDHandler</a> </dd>
  1433. <dd>
  1434. <a class="el" href="classHandlerBase.html#aa9bbcdb7958bace9296940ab702ef367">HandlerBase::HandlerBase</a> </dd></dl>
  1435. </div>
  1436. </div>
  1437. <a class="anchor" id="ab4621486a9776d480ec10e596a4d66a6"></a>
  1438. <div class="memitem">
  1439. <div class="memproto">
  1440. <table class="mlabels">
  1441. <tr>
  1442. <td class="mlabels-left">
  1443. <table class="memname">
  1444. <tr>
  1445. <td class="memname">virtual void SAX2XMLReader::setEntityResolver </td>
  1446. <td>(</td>
  1447. <td class="paramtype"><a class="el" href="classEntityResolver.html">EntityResolver</a> *const&#160;</td>
  1448. <td class="paramname"><em>resolver</em></td><td>)</td>
  1449. <td></td>
  1450. </tr>
  1451. </table>
  1452. </td>
  1453. <td class="mlabels-right">
  1454. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1455. </tr>
  1456. </table>
  1457. </div><div class="memdoc">
  1458. <p>Allow an application to register a custom entity resolver. </p>
  1459. <p>If the application does not register an entity resolver, the SAX parser will resolve system identifiers and open connections to entities itself (this is the default behaviour implemented in <a class="el" href="classDefaultHandler.html" title="Default base class for SAX2 handlers. ">DefaultHandler</a>).</p>
  1460. <p>Applications may register a new or different entity resolver in the middle of a parse, and the SAX parser must begin using the new resolver immediately.</p>
  1461. <dl class="params"><dt>Parameters</dt><dd>
  1462. <table class="params">
  1463. <tr><td class="paramname">resolver</td><td>The object for resolving entities. </td></tr>
  1464. </table>
  1465. </dd>
  1466. </dl>
  1467. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classEntityResolver.html#a14e534eb2170015056ccd71458e1058c" title="Default Constructor. ">EntityResolver::EntityResolver</a> </dd>
  1468. <dd>
  1469. <a class="el" href="classDefaultHandler.html#ab3aff728663a1c0aa9a1c0ed517f6806">DefaultHandler::DefaultHandler</a> </dd></dl>
  1470. </div>
  1471. </div>
  1472. <a class="anchor" id="a910e9acbec9c8bbd4ff3fdb92c76cf0e"></a>
  1473. <div class="memitem">
  1474. <div class="memproto">
  1475. <table class="mlabels">
  1476. <tr>
  1477. <td class="mlabels-left">
  1478. <table class="memname">
  1479. <tr>
  1480. <td class="memname">virtual void SAX2XMLReader::setErrorHandler </td>
  1481. <td>(</td>
  1482. <td class="paramtype"><a class="el" href="classErrorHandler.html">ErrorHandler</a> *const&#160;</td>
  1483. <td class="paramname"><em>handler</em></td><td>)</td>
  1484. <td></td>
  1485. </tr>
  1486. </table>
  1487. </td>
  1488. <td class="mlabels-right">
  1489. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1490. </tr>
  1491. </table>
  1492. </div><div class="memdoc">
  1493. <p>Allow an application to register an error event handler. </p>
  1494. <p>If the application does not register an error event handler, all error events reported by the SAX parser will be silently ignored, except for fatalError, which will throw a <a class="el" href="classSAXException.html" title="Encapsulate a general SAX error or warning. ">SAXException</a> (this is the default behaviour implemented by <a class="el" href="classHandlerBase.html" title="Default base class for handlers. ">HandlerBase</a>).</p>
  1495. <p>Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.</p>
  1496. <dl class="params"><dt>Parameters</dt><dd>
  1497. <table class="params">
  1498. <tr><td class="paramname">handler</td><td>The error handler. </td></tr>
  1499. </table>
  1500. </dd>
  1501. </dl>
  1502. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classErrorHandler.html#a7e5f379bd231442b898cef94556b2107" title="Default constructor. ">ErrorHandler::ErrorHandler</a> </dd>
  1503. <dd>
  1504. <a class="el" href="classSAXException.html#ae1c8ab9b99e3c43572c1567e72c652e4" title="Default constructor. ">SAXException::SAXException</a> </dd>
  1505. <dd>
  1506. <a class="el" href="classHandlerBase.html#aa9bbcdb7958bace9296940ab702ef367">HandlerBase::HandlerBase</a> </dd></dl>
  1507. </div>
  1508. </div>
  1509. <a class="anchor" id="aceaca940ae26cc40234074f338632872"></a>
  1510. <div class="memitem">
  1511. <div class="memproto">
  1512. <table class="mlabels">
  1513. <tr>
  1514. <td class="mlabels-left">
  1515. <table class="memname">
  1516. <tr>
  1517. <td class="memname">virtual void SAX2XMLReader::setExitOnFirstFatalError </td>
  1518. <td>(</td>
  1519. <td class="paramtype">const bool&#160;</td>
  1520. <td class="paramname"><em>newState</em></td><td>)</td>
  1521. <td></td>
  1522. </tr>
  1523. </table>
  1524. </td>
  1525. <td class="mlabels-right">
  1526. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1527. </tr>
  1528. </table>
  1529. </div><div class="memdoc">
  1530. <p>This method allows users to set the parser's behaviour when it encounters the first fatal error. </p>
  1531. <p>If set to true, the parser will exit at the first fatal error. If false, then it will report the error and continue processing.</p>
  1532. <p>The default value is 'true' and the parser exits on the first fatal error.</p>
  1533. <p>Or you can set the feature "http://apache.org/xml/features/continue-after-fatal-error" which has the opposite behaviour.</p>
  1534. <p>If both the feature above and this function are used, the latter takes effect.</p>
  1535. <dl class="params"><dt>Parameters</dt><dd>
  1536. <table class="params">
  1537. <tr><td class="paramname">newState</td><td>The value specifying whether the parser should continue or exit when it encounters the first fatal error.</td></tr>
  1538. </table>
  1539. </dd>
  1540. </dl>
  1541. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#a693dae9983a6d951c1fb36f0a9eab111" title="This method returns the state of the parser&#39;s exit-on-First-Fatal-Error flag. ">getExitOnFirstFatalError</a> </dd>
  1542. <dd>
  1543. <a class="el" href="classSAX2XMLReader.html#aa597ea87071e1a0aa1288567e4bfd6d7" title="Set the state of any feature in a SAX2 XMLReader. ">setFeature</a> </dd></dl>
  1544. </div>
  1545. </div>
  1546. <a class="anchor" id="aa597ea87071e1a0aa1288567e4bfd6d7"></a>
  1547. <div class="memitem">
  1548. <div class="memproto">
  1549. <table class="mlabels">
  1550. <tr>
  1551. <td class="mlabels-left">
  1552. <table class="memname">
  1553. <tr>
  1554. <td class="memname">virtual void SAX2XMLReader::setFeature </td>
  1555. <td>(</td>
  1556. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  1557. <td class="paramname"><em>name</em>, </td>
  1558. </tr>
  1559. <tr>
  1560. <td class="paramkey"></td>
  1561. <td></td>
  1562. <td class="paramtype">const bool&#160;</td>
  1563. <td class="paramname"><em>value</em>&#160;</td>
  1564. </tr>
  1565. <tr>
  1566. <td></td>
  1567. <td>)</td>
  1568. <td></td><td></td>
  1569. </tr>
  1570. </table>
  1571. </td>
  1572. <td class="mlabels-right">
  1573. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1574. </tr>
  1575. </table>
  1576. </div><div class="memdoc">
  1577. <p>Set the state of any feature in a SAX2 XMLReader. </p>
  1578. <p>Supported features in SAX2 for xerces-c are: <br />
  1579. (See the SAX2 Programming Guide for detail description).</p>
  1580. <p><br />
  1581. <a href="http://xml.org/sax/features/validation">http://xml.org/sax/features/validation</a> (default: true) <br />
  1582. <a href="http://xml.org/sax/features/namespaces">http://xml.org/sax/features/namespaces</a> (default: true) <br />
  1583. <a href="http://xml.org/sax/features/namespace-prefixes">http://xml.org/sax/features/namespace-prefixes</a> (default: false) <br />
  1584. <a href="http://apache.org/xml/features/validation/dynamic">http://apache.org/xml/features/validation/dynamic</a> (default: false) <br />
  1585. <a href="http://apache.org/xml/features/validation/reuse-grammar">http://apache.org/xml/features/validation/reuse-grammar</a> (default: false) <br />
  1586. <a href="http://apache.org/xml/features/validation/schema">http://apache.org/xml/features/validation/schema</a> (default: true) <br />
  1587. <a href="http://apache.org/xml/features/validation/schema-full-checking">http://apache.org/xml/features/validation/schema-full-checking</a> (default: false) <br />
  1588. <a href="http://apache.org/xml/features/validating/load-schema">http://apache.org/xml/features/validating/load-schema</a> (default: true) <br />
  1589. <a href="http://apache.org/xml/features/nonvalidating/load-external-dtd">http://apache.org/xml/features/nonvalidating/load-external-dtd</a> (default: true) <br />
  1590. <a href="http://apache.org/xml/features/continue-after-fatal-error">http://apache.org/xml/features/continue-after-fatal-error</a> (default: false) <br />
  1591. <a href="http://apache.org/xml/features/validation-error-as-fatal">http://apache.org/xml/features/validation-error-as-fatal</a> (default: false)</p>
  1592. <dl class="params"><dt>Parameters</dt><dd>
  1593. <table class="params">
  1594. <tr><td class="paramname">name</td><td>The unique identifier (URI) of the feature. </td></tr>
  1595. <tr><td class="paramname">value</td><td>The requested state of the feature (true or false). </td></tr>
  1596. </table>
  1597. </dd>
  1598. </dl>
  1599. <dl class="exception"><dt>Exceptions</dt><dd>
  1600. <table class="exception">
  1601. <tr><td class="paramname"><a class="el" href="classSAXNotRecognizedException.html">SAXNotRecognizedException</a></td><td>If the requested feature is not known. </td></tr>
  1602. <tr><td class="paramname"><a class="el" href="classSAXNotSupportedException.html">SAXNotSupportedException</a></td><td>Feature modification is not supported during parse </td></tr>
  1603. </table>
  1604. </dd>
  1605. </dl>
  1606. </div>
  1607. </div>
  1608. <a class="anchor" id="a84fd7af67ec7e2c593f6244c89eba39c"></a>
  1609. <div class="memitem">
  1610. <div class="memproto">
  1611. <table class="mlabels">
  1612. <tr>
  1613. <td class="mlabels-left">
  1614. <table class="memname">
  1615. <tr>
  1616. <td class="memname">void SAX2XMLReader::setInputBufferSize </td>
  1617. <td>(</td>
  1618. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  1619. <td class="paramname"><em>bufferSize</em></td><td>)</td>
  1620. <td></td>
  1621. </tr>
  1622. </table>
  1623. </td>
  1624. <td class="mlabels-right">
  1625. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  1626. </tr>
  1627. </table>
  1628. </div><div class="memdoc">
  1629. <p>Set maximum input buffer size. </p>
  1630. <p>This method allows users to limit the size of buffers used in parsing XML character data. The effect of setting this size is to limit the size of a <a class="el" href="classContentHandler.html#aed552fab959bfa7e9135691e1d21ab5a" title="Receive notification of character data. ">ContentHandler::characters()</a> call.</p>
  1631. <p>The parser's default input buffer size is 1 megabyte.</p>
  1632. <dl class="params"><dt>Parameters</dt><dd>
  1633. <table class="params">
  1634. <tr><td class="paramname">bufferSize</td><td>The maximum input buffer size </td></tr>
  1635. </table>
  1636. </dd>
  1637. </dl>
  1638. </div>
  1639. </div>
  1640. <a class="anchor" id="a397fd37a21987186c6e4e63211f5d118"></a>
  1641. <div class="memitem">
  1642. <div class="memproto">
  1643. <table class="mlabels">
  1644. <tr>
  1645. <td class="mlabels-left">
  1646. <table class="memname">
  1647. <tr>
  1648. <td class="memname">virtual void SAX2XMLReader::setLexicalHandler </td>
  1649. <td>(</td>
  1650. <td class="paramtype"><a class="el" href="classLexicalHandler.html">LexicalHandler</a> *const&#160;</td>
  1651. <td class="paramname"><em>handler</em></td><td>)</td>
  1652. <td></td>
  1653. </tr>
  1654. </table>
  1655. </td>
  1656. <td class="mlabels-right">
  1657. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1658. </tr>
  1659. </table>
  1660. </div><div class="memdoc">
  1661. <p>Allow an application to register a lexical event handler. </p>
  1662. <p>If the application does not register a lexical handler, all events reported by the SAX parser will be silently ignored. (this is the default behaviour implemented by <a class="el" href="classHandlerBase.html" title="Default base class for handlers. ">HandlerBase</a>).</p>
  1663. <p>Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.</p>
  1664. <dl class="params"><dt>Parameters</dt><dd>
  1665. <table class="params">
  1666. <tr><td class="paramname">handler</td><td>The error handler. </td></tr>
  1667. </table>
  1668. </dd>
  1669. </dl>
  1670. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classLexicalHandler.html#a355f99e04837f54f0041a29c86530fa0" title="Default constructor. ">LexicalHandler::LexicalHandler</a> </dd>
  1671. <dd>
  1672. <a class="el" href="classSAXException.html#ae1c8ab9b99e3c43572c1567e72c652e4" title="Default constructor. ">SAXException::SAXException</a> </dd>
  1673. <dd>
  1674. <a class="el" href="classHandlerBase.html#aa9bbcdb7958bace9296940ab702ef367">HandlerBase::HandlerBase</a> </dd></dl>
  1675. </div>
  1676. </div>
  1677. <a class="anchor" id="a02a51d39bbb1241cef2f6dab1ec56947"></a>
  1678. <div class="memitem">
  1679. <div class="memproto">
  1680. <table class="mlabels">
  1681. <tr>
  1682. <td class="mlabels-left">
  1683. <table class="memname">
  1684. <tr>
  1685. <td class="memname">virtual void SAX2XMLReader::setProperty </td>
  1686. <td>(</td>
  1687. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  1688. <td class="paramname"><em>name</em>, </td>
  1689. </tr>
  1690. <tr>
  1691. <td class="paramkey"></td>
  1692. <td></td>
  1693. <td class="paramtype">void *&#160;</td>
  1694. <td class="paramname"><em>value</em>&#160;</td>
  1695. </tr>
  1696. <tr>
  1697. <td></td>
  1698. <td>)</td>
  1699. <td></td><td></td>
  1700. </tr>
  1701. </table>
  1702. </td>
  1703. <td class="mlabels-right">
  1704. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1705. </tr>
  1706. </table>
  1707. </div><div class="memdoc">
  1708. <p>Set the value of any property in a SAX2 XMLReader. </p>
  1709. <p>Supported properties in SAX2 for xerces-c are: <br />
  1710. (See the SAX2 Programming Guide for detail description).</p>
  1711. <p><br />
  1712. <a href="http://apache.org/xml/properties/schema/external-schemaLocation">http://apache.org/xml/properties/schema/external-schemaLocation</a> <br />
  1713. <a href="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation">http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation</a> <br />
  1714. <a href="http://apache.org/xml/properties/security-manager">http://apache.org/xml/properties/security-manager</a> <br />
  1715. <a href="http://apache.org/xml/properties/low-water-mark">http://apache.org/xml/properties/low-water-mark</a> <br />
  1716. <a href="http://apache.org/xml/properties/scannerName">http://apache.org/xml/properties/scannerName</a></p>
  1717. <p>It takes a void pointer as the property value. Application is required to initialize this void pointer to a correct type. See the SAX2 Programming Guide to learn exactly what type of property value each property expects for processing. Passing a void pointer that was initialized with a wrong type will lead to unexpected result. If the same property is set more than once, the last one takes effect.</p>
  1718. <dl class="params"><dt>Parameters</dt><dd>
  1719. <table class="params">
  1720. <tr><td class="paramname">name</td><td>The unique identifier (URI) of the property being set. </td></tr>
  1721. <tr><td class="paramname">value</td><td>The requested value for the property. See the SAX2 Programming Guide to learn exactly what type of property value each property expects for processing. Passing a void pointer that was initialized with a wrong type will lead to unexpected result. </td></tr>
  1722. </table>
  1723. </dd>
  1724. </dl>
  1725. <dl class="exception"><dt>Exceptions</dt><dd>
  1726. <table class="exception">
  1727. <tr><td class="paramname"><a class="el" href="classSAXNotRecognizedException.html">SAXNotRecognizedException</a></td><td>If the requested property is not known. </td></tr>
  1728. <tr><td class="paramname"><a class="el" href="classSAXNotSupportedException.html">SAXNotSupportedException</a></td><td>Property modification is not supported during parse </td></tr>
  1729. </table>
  1730. </dd>
  1731. </dl>
  1732. </div>
  1733. </div>
  1734. <a class="anchor" id="a1e582e31531c645181c220c9ccbbe904"></a>
  1735. <div class="memitem">
  1736. <div class="memproto">
  1737. <table class="mlabels">
  1738. <tr>
  1739. <td class="mlabels-left">
  1740. <table class="memname">
  1741. <tr>
  1742. <td class="memname">virtual void SAX2XMLReader::setValidationConstraintFatal </td>
  1743. <td>(</td>
  1744. <td class="paramtype">const bool&#160;</td>
  1745. <td class="paramname"><em>newState</em></td><td>)</td>
  1746. <td></td>
  1747. </tr>
  1748. </table>
  1749. </td>
  1750. <td class="mlabels-right">
  1751. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1752. </tr>
  1753. </table>
  1754. </div><div class="memdoc">
  1755. <p>This method allows users to set the parser's behaviour when it encounters a validation constraint error. </p>
  1756. <p>If set to true, and the the parser will treat validation error as fatal and will exit depends on the state of "getExitOnFirstFatalError". If false, then it will report the error and continue processing.</p>
  1757. <p>Note: setting this true does not mean the validation error will be printed with the word "Fatal Error". It is still printed as "Error", but the parser will exit if "setExitOnFirstFatalError" is set to true.</p>
  1758. <p>The default value is 'false'.</p>
  1759. <p>Or you can set the feature "http://apache.org/xml/features/validation-error-as-fatal" which means the same thing.</p>
  1760. <p>If both the feature above and this function are used, the latter takes effect.</p>
  1761. <dl class="params"><dt>Parameters</dt><dd>
  1762. <table class="params">
  1763. <tr><td class="paramname">newState</td><td>If true, the parser will exit if "setExitOnFirstFatalError" is set to true.</td></tr>
  1764. </table>
  1765. </dd>
  1766. </dl>
  1767. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAX2XMLReader.html#af2d257d62e2b044095409d84181c6424" title="This method returns the state of the parser&#39;s validation-constraint-fatal flag. ">getValidationConstraintFatal</a> </dd>
  1768. <dd>
  1769. <a class="el" href="classSAX2XMLReader.html#aceaca940ae26cc40234074f338632872" title="This method allows users to set the parser&#39;s behaviour when it encounters the first fatal error...">setExitOnFirstFatalError</a> </dd>
  1770. <dd>
  1771. <a class="el" href="classSAX2XMLReader.html#aa597ea87071e1a0aa1288567e4bfd6d7" title="Set the state of any feature in a SAX2 XMLReader. ">setFeature</a> </dd></dl>
  1772. </div>
  1773. </div>
  1774. <a class="anchor" id="a2ee07410cc0f6488eeada730471990ae"></a>
  1775. <div class="memitem">
  1776. <div class="memproto">
  1777. <table class="mlabels">
  1778. <tr>
  1779. <td class="mlabels-left">
  1780. <table class="memname">
  1781. <tr>
  1782. <td class="memname">virtual void SAX2XMLReader::setValidator </td>
  1783. <td>(</td>
  1784. <td class="paramtype"><a class="el" href="classXMLValidator.html">XMLValidator</a> *&#160;</td>
  1785. <td class="paramname"><em>valueToAdopt</em></td><td>)</td>
  1786. <td></td>
  1787. </tr>
  1788. </table>
  1789. </td>
  1790. <td class="mlabels-right">
  1791. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  1792. </tr>
  1793. </table>
  1794. </div><div class="memdoc">
  1795. <p>This method is used to set a validator. </p>
  1796. <p><b><a class="el" href="classSAX2XMLReader.html">SAX2XMLReader</a> assumes responsibility for the validator. It will be deleted when the XMLReader is destroyed.</b></p>
  1797. <dl class="params"><dt>Parameters</dt><dd>
  1798. <table class="params">
  1799. <tr><td class="paramname">valueToAdopt</td><td>A pointer to the validator that the reader should use. </td></tr>
  1800. </table>
  1801. </dd>
  1802. </dl>
  1803. </div>
  1804. </div>
  1805. <hr/>The documentation for this class was generated from the following file:<ul>
  1806. <li><a class="el" href="SAX2XMLReader_8hpp_source.html">SAX2XMLReader.hpp</a></li>
  1807. </ul>
  1808. </div><!-- contents -->
  1809. <!-- start footer part -->
  1810. <hr class="footer"/><address class="footer"><small>
  1811. Generated on Wed Mar 18 2015 10:43:38 for Xerces-C++ by &#160;<a href="http://www.doxygen.org/index.html">
  1812. <img class="footer" src="doxygen.png" alt="doxygen"/>
  1813. </a> 1.8.9.1
  1814. </small></address>
  1815. </body>
  1816. </html>