Skip to content

Commit 0e49f88

Browse files
committed
Mark most SAX1 functions as deprecated
No compiler warnings generated yet.
1 parent ce93ee9 commit 0e49f88

6 files changed

+70
-35
lines changed

SAX2.c

+2
Original file line numberDiff line numberDiff line change
@@ -2829,6 +2829,8 @@ static int xmlSAX2DefaultVersionValue = 2;
28292829
* xmlSAXDefaultVersion:
28302830
* @version: the version, 1 or 2
28312831
*
2832+
* DEPRECATED: Use parser option XML_PARSE_SAX1.
2833+
*
28322834
* Set the default version of SAX used globally by the library.
28332835
* By default, during initialization the default is set to 2.
28342836
* Note that it is generally a better coding style to use

doc/devhelp/libxml2-SAX2.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ <h2>Details</h2>
224224
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>ctx</tt></i>:</span></td><td>the user data (XML parser context)</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>The name of the entity</td></tr><tr><td><span class="term"><i><tt>publicId</tt></i>:</span></td><td>The public ID of the entity</td></tr><tr><td><span class="term"><i><tt>systemId</tt></i>:</span></td><td>The system ID of the entity</td></tr><tr><td><span class="term"><i><tt>notationName</tt></i>:</span></td><td>the name of the notation</td></tr></tbody></table></div></div>
225225
<hr/>
226226
<div class="refsect2" lang="en"><h3><a name="xmlSAXDefaultVersion"/>xmlSAXDefaultVersion ()</h3><pre class="programlisting">int xmlSAXDefaultVersion (int version)<br/>
227-
</pre><p>Set the default version of SAX used globally by the library. By default, during initialization the default is set to 2. Note that it is generally a better coding style to use xmlSAXVersion() to set up the version explicitly for a given parsing context.</p>
227+
</pre><p>DEPRECATED: Use parser option XML_PARSE_SAX1. Set the default version of SAX used globally by the library. By default, during initialization the default is set to 2. Note that it is generally a better coding style to use xmlSAXVersion() to set up the version explicitly for a given parsing context.</p>
228228
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>version</tt></i>:</span></td><td>the version, 1 or 2</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the previous value in case of success and -1 in case of error.</td></tr></tbody></table></div></div>
229229
<hr/>
230230
<div class="refsect2" lang="en"><h3><a name="xmlSAXVersion"/>xmlSAXVersion ()</h3><pre class="programlisting">int xmlSAXVersion (<a href="libxml2-tree.html#xmlSAXHandler">xmlSAXHandler</a> * hdlr, <br/> int version)<br/>

0 commit comments

Comments
 (0)