mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-29 14:48:39 +02:00
789 lines
36 KiB
HTML
789 lines
36 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>SAX2</title>
|
||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||
<link rel="start" href="index.html" title="Raptor RDF Syntax Parsing and Serializing Library Manual">
|
||
<link rel="up" href="reference-manual.html" title="Part II. Raptor Reference Manual">
|
||
<link rel="prev" href="raptor-section-parser.html" title="Parser">
|
||
<link rel="next" href="raptor-section-sequence.html" title="Sequence">
|
||
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
|
||
<link rel="stylesheet" href="style.css" type="text/css">
|
||
<link rel="chapter" href="introduction.html" title="Raptor Overview">
|
||
<link rel="part" href="tutorial.html" title="Part I. Raptor Tutorial">
|
||
<link rel="chapter" href="tutorial-initialising-finishing.html" title="Initialising and Finishing using the Library">
|
||
<link rel="chapter" href="tutorial-querying-functionality.html" title="Listing built-in functionality">
|
||
<link rel="chapter" href="tutorial-parsing.html" title="Parsing syntaxes to RDF Triples">
|
||
<link rel="chapter" href="tutorial-serializing.html" title="Serializing RDF triples to a syntax">
|
||
<link rel="part" href="reference-manual.html" title="Part II. Raptor Reference Manual">
|
||
<link rel="chapter" href="raptor-parsers.html" title="Parsers in Raptor (syntax to triples)">
|
||
<link rel="chapter" href="raptor-serializers.html" title="Serializers in Raptor (triples to syntax)">
|
||
<link rel="index" href="ix01.html" title="Index">
|
||
</head>
|
||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
||
<tr valign="middle">
|
||
<td><a accesskey="p" href="raptor-section-parser.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
||
<td><a accesskey="u" href="reference-manual.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
||
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
||
<th width="100%" align="center">Raptor RDF Syntax Parsing and Serializing Library Manual</th>
|
||
<td><a accesskey="n" href="raptor-section-sequence.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
||
</tr>
|
||
<tr><td colspan="5" class="shortcuts"><nobr><a href="#raptor-section-sax2.synopsis" class="shortcut">Top</a>
|
||
|
|
||
<a href="#raptor-section-sax2.description" class="shortcut">Description</a></nobr></td></tr>
|
||
</table>
|
||
<div class="refentry" lang="en">
|
||
<a name="raptor-section-sax2"></a><div class="titlepage"></div>
|
||
<div class="refnamediv"><table width="100%"><tr>
|
||
<td valign="top">
|
||
<h2><span class="refentrytitle"><a name="raptor-section-sax2.top_of_page"></a>SAX2</span></h2>
|
||
<p>SAX2 — SAX2 XML Parsing API with namespaces and base URI support.</p>
|
||
</td>
|
||
<td valign="top" align="right"></td>
|
||
</tr></table></div>
|
||
<div class="refsynopsisdiv">
|
||
<a name="raptor-section-sax2.synopsis"></a><h2>Synopsis</h2>
|
||
<pre class="synopsis">
|
||
typedef <a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a>;
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a>* <a class="link" href="raptor-section-sax2.html#raptor-new-sax2" title="raptor_new_sax2 ()">raptor_new_sax2</a> (void *user_data,
|
||
<a class="link" href="raptor-section-general.html#raptor-error-handlers" title="raptor_error_handlers">raptor_error_handlers</a> *error_handlers);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-free-sax2" title="raptor_free_sax2 ()">raptor_free_sax2</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2);
|
||
void (<a class="link" href="raptor-section-sax2.html#raptor-sax2-start-element-handler" title="raptor_sax2_start_element_handler ()">*raptor_sax2_start_element_handler</a>)
|
||
(void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element);
|
||
void (<a class="link" href="raptor-section-sax2.html#raptor-sax2-end-element-handler" title="raptor_sax2_end_element_handler ()">*raptor_sax2_end_element_handler</a>) (void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element);
|
||
void (<a class="link" href="raptor-section-sax2.html#raptor-sax2-characters-handler" title="raptor_sax2_characters_handler ()">*raptor_sax2_characters_handler</a>) (void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element,
|
||
unsigned char *s,
|
||
int len);
|
||
void (<a class="link" href="raptor-section-sax2.html#raptor-sax2-cdata-handler" title="raptor_sax2_cdata_handler ()">*raptor_sax2_cdata_handler</a>) (void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element,
|
||
unsigned char *s,
|
||
int len);
|
||
void (<a class="link" href="raptor-section-sax2.html#raptor-sax2-comment-handler" title="raptor_sax2_comment_handler ()">*raptor_sax2_comment_handler</a>) (void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element,
|
||
unsigned char *s);
|
||
void (<a class="link" href="raptor-section-sax2.html#raptor-sax2-unparsed-entity-decl-handler" title="raptor_sax2_unparsed_entity_decl_handler ()">*raptor_sax2_unparsed_entity_decl_handler</a>)
|
||
(void *user_data,
|
||
unsigned char *entityName,
|
||
unsigned char *base,
|
||
unsigned char *systemId,
|
||
unsigned char *publicId,
|
||
unsigned char *notationName);
|
||
int (<a class="link" href="raptor-section-sax2.html#raptor-sax2-external-entity-ref-handler" title="raptor_sax2_external_entity_ref_handler ()">*raptor_sax2_external_entity_ref_handler</a>)
|
||
(void *user_data,
|
||
unsigned char *context,
|
||
unsigned char *base,
|
||
unsigned char *systemId,
|
||
unsigned char *publicId);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-sax2-set-start-element-handler" title="raptor_sax2_set_start_element_handler ()">raptor_sax2_set_start_element_handler</a>
|
||
(<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-start-element-handler" title="raptor_sax2_start_element_handler ()">raptor_sax2_start_element_handler</a> handler);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-sax2-set-end-element-handler" title="raptor_sax2_set_end_element_handler ()">raptor_sax2_set_end_element_handler</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-end-element-handler" title="raptor_sax2_end_element_handler ()">raptor_sax2_end_element_handler</a> handler);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-sax2-set-characters-handler" title="raptor_sax2_set_characters_handler ()">raptor_sax2_set_characters_handler</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-characters-handler" title="raptor_sax2_characters_handler ()">raptor_sax2_characters_handler</a> handler);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-sax2-set-cdata-handler" title="raptor_sax2_set_cdata_handler ()">raptor_sax2_set_cdata_handler</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-cdata-handler" title="raptor_sax2_cdata_handler ()">raptor_sax2_cdata_handler</a> handler);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-sax2-set-comment-handler" title="raptor_sax2_set_comment_handler ()">raptor_sax2_set_comment_handler</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-comment-handler" title="raptor_sax2_comment_handler ()">raptor_sax2_comment_handler</a> handler);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-sax2-set-unparsed-entity-decl-handler" title="raptor_sax2_set_unparsed_entity_decl_handler ()">raptor_sax2_set_unparsed_entity_decl_handler</a>
|
||
(<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-unparsed-entity-decl-handler" title="raptor_sax2_unparsed_entity_decl_handler ()">raptor_sax2_unparsed_entity_decl_handler</a> handler);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-sax2-set-external-entity-ref-handler" title="raptor_sax2_set_external_entity_ref_handler ()">raptor_sax2_set_external_entity_ref_handler</a>
|
||
(<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-external-entity-ref-handler" title="raptor_sax2_external_entity_ref_handler ()">raptor_sax2_external_entity_ref_handler</a> handler);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-sax2-set-namespace-handler" title="raptor_sax2_set_namespace_handler ()">raptor_sax2_set_namespace_handler</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-parser.html#raptor-namespace-handler" title="raptor_namespace_handler ()">raptor_namespace_handler</a> handler);
|
||
void <a class="link" href="raptor-section-sax2.html#raptor-sax2-parse-start" title="raptor_sax2_parse_start ()">raptor_sax2_parse_start</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri">raptor_uri</a> *base_uri);
|
||
int <a class="link" href="raptor-section-sax2.html#raptor-sax2-parse-chunk" title="raptor_sax2_parse_chunk ()">raptor_sax2_parse_chunk</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
unsigned char *buffer,
|
||
size_t len,
|
||
int is_end);
|
||
const unsigned char* <a class="link" href="raptor-section-sax2.html#raptor-sax2-inscope-xml-language" title="raptor_sax2_inscope_xml_language ()">raptor_sax2_inscope_xml_language</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2);
|
||
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri">raptor_uri</a>* <a class="link" href="raptor-section-sax2.html#raptor-sax2-inscope-base-uri" title="raptor_sax2_inscope_base_uri ()">raptor_sax2_inscope_base_uri</a> (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2);
|
||
</pre>
|
||
</div>
|
||
<div class="refsect1" lang="en">
|
||
<a name="raptor-section-sax2.description"></a><h2>Description</h2>
|
||
<p>
|
||
A class providing a SAX2 XML parsing API with XML namespaces
|
||
and XML base support.
|
||
</p>
|
||
</div>
|
||
<div class="refsect1" lang="en">
|
||
<a name="raptor-section-sax2.details"></a><h2>Details</h2>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2"></a><h3>raptor_sax2</h3>
|
||
<pre class="programlisting">typedef struct raptor_sax2_s raptor_sax2;
|
||
</pre>
|
||
<p>
|
||
Raptor SAX2 class</p>
|
||
<p>
|
||
|
||
</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-new-sax2"></a><h3>raptor_new_sax2 ()</h3>
|
||
<pre class="programlisting"><a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a>* raptor_new_sax2 (void *user_data,
|
||
<a class="link" href="raptor-section-general.html#raptor-error-handlers" title="raptor_error_handlers">raptor_error_handlers</a> *error_handlers);</pre>
|
||
<p>
|
||
Constructor - Create a new SAX2 with error handlers</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||
<td> pointer context information to pass to handlers
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>error_handlers</code></em> :</span></p></td>
|
||
<td> error handlers pointer
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> new <a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2"><span class="type">raptor_sax2</span></a> object or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-free-sax2"></a><h3>raptor_free_sax2 ()</h3>
|
||
<pre class="programlisting">void raptor_free_sax2 (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2);</pre>
|
||
<p>
|
||
Destructor - destroy a SAX2 object</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody><tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-start-element-handler"></a><h3>raptor_sax2_start_element_handler ()</h3>
|
||
<pre class="programlisting">void (*raptor_sax2_start_element_handler)
|
||
(void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element);</pre>
|
||
<p>
|
||
SAX2 start element handler</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||
<td> user data
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>xml_element</code></em> :</span></p></td>
|
||
<td> XML element
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-end-element-handler"></a><h3>raptor_sax2_end_element_handler ()</h3>
|
||
<pre class="programlisting">void (*raptor_sax2_end_element_handler) (void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element);</pre>
|
||
<p>
|
||
SAX2 end element handler</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||
<td> user data
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>xml_element</code></em> :</span></p></td>
|
||
<td> XML element
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-characters-handler"></a><h3>raptor_sax2_characters_handler ()</h3>
|
||
<pre class="programlisting">void (*raptor_sax2_characters_handler) (void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element,
|
||
unsigned char *s,
|
||
int len);</pre>
|
||
<p>
|
||
SAX2 characters handler</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||
<td> user data
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>xml_element</code></em> :</span></p></td>
|
||
<td> XML element
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td>
|
||
<td> string
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
||
<td> string len
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-cdata-handler"></a><h3>raptor_sax2_cdata_handler ()</h3>
|
||
<pre class="programlisting">void (*raptor_sax2_cdata_handler) (void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element,
|
||
unsigned char *s,
|
||
int len);</pre>
|
||
<p>
|
||
SAX2 CDATA section handler</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||
<td> user data
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>xml_element</code></em> :</span></p></td>
|
||
<td> XML element
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td>
|
||
<td> string
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
||
<td> string len
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-comment-handler"></a><h3>raptor_sax2_comment_handler ()</h3>
|
||
<pre class="programlisting">void (*raptor_sax2_comment_handler) (void *user_data,
|
||
<a class="link" href="raptor-section-xml.html#raptor-xml-element" title="raptor_xml_element">raptor_xml_element</a> *xml_element,
|
||
unsigned char *s);</pre>
|
||
<p>
|
||
SAX2 XML comment handler</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||
<td> user data
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>xml_element</code></em> :</span></p></td>
|
||
<td> XML element
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td>
|
||
<td> string
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-unparsed-entity-decl-handler"></a><h3>raptor_sax2_unparsed_entity_decl_handler ()</h3>
|
||
<pre class="programlisting">void (*raptor_sax2_unparsed_entity_decl_handler)
|
||
(void *user_data,
|
||
unsigned char *entityName,
|
||
unsigned char *base,
|
||
unsigned char *systemId,
|
||
unsigned char *publicId,
|
||
unsigned char *notationName);</pre>
|
||
<p>
|
||
SAX2 unparsed entity (NDATA) handler</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||
<td> user data
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>entityName</code></em> :</span></p></td>
|
||
<td> entity name
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>base</code></em> :</span></p></td>
|
||
<td> base URI
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>systemId</code></em> :</span></p></td>
|
||
<td> system ID
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>publicId</code></em> :</span></p></td>
|
||
<td> public ID
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>notationName</code></em> :</span></p></td>
|
||
<td> notation name
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-external-entity-ref-handler"></a><h3>raptor_sax2_external_entity_ref_handler ()</h3>
|
||
<pre class="programlisting">int (*raptor_sax2_external_entity_ref_handler)
|
||
(void *user_data,
|
||
unsigned char *context,
|
||
unsigned char *base,
|
||
unsigned char *systemId,
|
||
unsigned char *publicId);</pre>
|
||
<p>
|
||
SAX2 external entity reference handler</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||
<td> user data
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
||
<td> context
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>base</code></em> :</span></p></td>
|
||
<td> base URI
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>systemId</code></em> :</span></p></td>
|
||
<td> system ID
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>publicId</code></em> :</span></p></td>
|
||
<td> public ID
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> 0 if processing should not continue because of a
|
||
fatal error in the handling of the external entity.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-set-start-element-handler"></a><h3>raptor_sax2_set_start_element_handler ()</h3>
|
||
<pre class="programlisting">void raptor_sax2_set_start_element_handler
|
||
(<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-start-element-handler" title="raptor_sax2_start_element_handler ()">raptor_sax2_start_element_handler</a> handler);</pre>
|
||
<p>
|
||
Set SAX2 start element handler.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
|
||
<td> start element handler
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-set-end-element-handler"></a><h3>raptor_sax2_set_end_element_handler ()</h3>
|
||
<pre class="programlisting">void raptor_sax2_set_end_element_handler (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-end-element-handler" title="raptor_sax2_end_element_handler ()">raptor_sax2_end_element_handler</a> handler);</pre>
|
||
<p>
|
||
Set SAX2 end element handler.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
|
||
<td> end element handler
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-set-characters-handler"></a><h3>raptor_sax2_set_characters_handler ()</h3>
|
||
<pre class="programlisting">void raptor_sax2_set_characters_handler (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-characters-handler" title="raptor_sax2_characters_handler ()">raptor_sax2_characters_handler</a> handler);</pre>
|
||
<p>
|
||
Set SAX2 characters handler.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
|
||
<td> characters handler
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-set-cdata-handler"></a><h3>raptor_sax2_set_cdata_handler ()</h3>
|
||
<pre class="programlisting">void raptor_sax2_set_cdata_handler (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-cdata-handler" title="raptor_sax2_cdata_handler ()">raptor_sax2_cdata_handler</a> handler);</pre>
|
||
<p>
|
||
Set SAX2 CDATA handler.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
|
||
<td> CDATA handler
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-set-comment-handler"></a><h3>raptor_sax2_set_comment_handler ()</h3>
|
||
<pre class="programlisting">void raptor_sax2_set_comment_handler (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-comment-handler" title="raptor_sax2_comment_handler ()">raptor_sax2_comment_handler</a> handler);</pre>
|
||
<p>
|
||
Set SAX2 XML comment handler.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
|
||
<td> comment handler
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-set-unparsed-entity-decl-handler"></a><h3>raptor_sax2_set_unparsed_entity_decl_handler ()</h3>
|
||
<pre class="programlisting">void raptor_sax2_set_unparsed_entity_decl_handler
|
||
(<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-unparsed-entity-decl-handler" title="raptor_sax2_unparsed_entity_decl_handler ()">raptor_sax2_unparsed_entity_decl_handler</a> handler);</pre>
|
||
<p>
|
||
Set SAX2 XML unparsed entity declaration handler.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
|
||
<td> unparsed entity declaration handler
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-set-external-entity-ref-handler"></a><h3>raptor_sax2_set_external_entity_ref_handler ()</h3>
|
||
<pre class="programlisting">void raptor_sax2_set_external_entity_ref_handler
|
||
(<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-sax2.html#raptor-sax2-external-entity-ref-handler" title="raptor_sax2_external_entity_ref_handler ()">raptor_sax2_external_entity_ref_handler</a> handler);</pre>
|
||
<p>
|
||
Set SAX2 XML entity reference handler.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
|
||
<td> entity reference handler
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-set-namespace-handler"></a><h3>raptor_sax2_set_namespace_handler ()</h3>
|
||
<pre class="programlisting">void raptor_sax2_set_namespace_handler (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-parser.html#raptor-namespace-handler" title="raptor_namespace_handler ()">raptor_namespace_handler</a> handler);</pre>
|
||
<p>
|
||
Set the XML namespace handler function.
|
||
</p>
|
||
<p>
|
||
When a prefix/namespace is seen in an XML parser, call the given
|
||
<em class="parameter"><code>handler</code></em> with the prefix string and the <a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri"><span class="type">raptor_uri</span></a> namespace URI.
|
||
Either can be NULL for the default prefix or default namespace.
|
||
</p>
|
||
<p>
|
||
The handler function does not deal with duplicates so any
|
||
namespace may be declared multiple times when a namespace is seen
|
||
in different parts of a document.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> <a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2"><span class="type">raptor_sax2</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
|
||
<td> new namespace callback function
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-parse-start"></a><h3>raptor_sax2_parse_start ()</h3>
|
||
<pre class="programlisting">void raptor_sax2_parse_start (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
<a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri">raptor_uri</a> *base_uri);</pre>
|
||
<p>
|
||
Start an XML SAX2 parse.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> sax2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
|
||
<td> base URI
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-parse-chunk"></a><h3>raptor_sax2_parse_chunk ()</h3>
|
||
<pre class="programlisting">int raptor_sax2_parse_chunk (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2,
|
||
unsigned char *buffer,
|
||
size_t len,
|
||
int is_end);</pre>
|
||
<p>
|
||
Parse a chunk of XML data generating SAX2 events</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> sax2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
|
||
<td> input buffer
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
||
<td> input buffer lenght
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>is_end</code></em> :</span></p></td>
|
||
<td> non-0 if end of data
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> non-0 on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-inscope-xml-language"></a><h3>raptor_sax2_inscope_xml_language ()</h3>
|
||
<pre class="programlisting">const unsigned char* raptor_sax2_inscope_xml_language (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2);</pre>
|
||
<p>
|
||
Get the in-scope XML language</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> the XML language or NULL if none is in scope.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="raptor-sax2-inscope-base-uri"></a><h3>raptor_sax2_inscope_base_uri ()</h3>
|
||
<pre class="programlisting"><a class="link" href="raptor-section-uri.html#raptor-uri" title="raptor_uri">raptor_uri</a>* raptor_sax2_inscope_base_uri (<a class="link" href="raptor-section-sax2.html#raptor-sax2" title="raptor_sax2">raptor_sax2</a> *sax2);</pre>
|
||
<p>
|
||
Get the in-scope base URI</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>sax2</code></em> :</span></p></td>
|
||
<td> SAX2 object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> the in-scope base URI shared object or NULL if none is in scope.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="footer">
|
||
<hr>
|
||
Generated by GTK-Doc V1.10</div>
|
||
</body>
|
||
</html>
|