Redland

 view release on metacpan or  search on metacpan

redland/raptor/docs/html/raptor-section-xml.html  view on Meta::CPAN

<tr valign="middle">
<td><a accesskey="p" href="raptor-section-xml-qname.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="ix01.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="#id2558354" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2634123" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="raptor-section-xml"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2558354"></a><span class="refentrytitle">XML</span>
</h2>
<p>XML &#8212; XML and XML Writer</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">



typedef     <a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a>;
<a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a>* <a href="raptor-section-xml.html#raptor-new-xml-element">raptor_new_xml_element</a>  (<a href="raptor-section-xml-qname.html#raptor-qname">raptor_qname</a> *name,
                                             unsigned char *xml_language,
                                             <a href="raptor-section-uri.html#raptor-uri">raptor_uri</a> *xml_base);
void        <a href="raptor-section-xml.html#raptor-free-xml-element">raptor_free_xml_element</a>         (<a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *element);
<a href="raptor-section-xml-qname.html#raptor-qname">raptor_qname</a>* <a href="raptor-section-xml.html#raptor-xml-element-get-name">raptor_xml_element_get_name</a>   (<a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *xml_e...
<a href="raptor-section-xml-qname.html#raptor-qname">raptor_qname</a>** <a href="raptor-section-xml.html#raptor-xml-element-get-attributes">raptor_xml_element_get_attributes</a>
                                            (<a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *xml_element);
int         <a href="raptor-section-xml.html#raptor-xml-element-get-attributes-count">raptor_xml_element_get_attributes_count</a>
                                            (<a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *xml_element);
void        <a href="raptor-section-xml.html#raptor-xml-element-set-attributes">raptor_xml_element_set_attributes</a>
                                            (<a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *xml_element,
                                             <a href="raptor-section-xml-qname.html#raptor-qname">raptor_qname</a> **attributes,
                                             int count);
int         <a href="raptor-section-xml.html#raptor-xml-element-declare-namespace">raptor_xml_element_declare_namespace</a>
                                            (<a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *xml_element,
                                             <a href="raptor-section-xml-namespace.html#raptor-namespace">raptor_namespace</a> *nspace);
int         <a href="raptor-section-xml.html#raptor-xml-element-is-empty">raptor_xml_element_is_empty</a>     (<a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *xml_element);
<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a>* <a href="raptor-section-xml.html#raptor-new-xml-writer">raptor_new_xml_writer</a>    (<a href="raptor-section-xml-namespace.html#raptor-namespace-stack">raptor_namespace_stack...
                                             <a href="raptor-section-uri.html#raptor-uri-handler">raptor_uri_handler</a> *uri_handler,
                                             void *uri_context,
                                             <a href="raptor-section-iostream.html#raptor-iostream">raptor_iostream</a> *iostr,
                                             <a href="raptor-section-general.html#raptor-simple-message-handler">raptor_simple_message_handler</a> error_handler,
                                             void *error_data,
                                             int canonicalize);
void        <a href="raptor-section-xml.html#raptor-free-xml-writer">raptor_free_xml_writer</a>          (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer);
void        <a href="raptor-section-xml.html#raptor-xml-writer-empty-element">raptor_xml_writer_empty_element</a> (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             <a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *element);
void        <a href="raptor-section-xml.html#raptor-xml-writer-start-element">raptor_xml_writer_start_element</a> (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             <a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *element);
void        <a href="raptor-section-xml.html#raptor-xml-writer-end-element">raptor_xml_writer_end_element</a>   (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             <a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *element);
void        <a href="raptor-section-xml.html#raptor-xml-writer-cdata">raptor_xml_writer_cdata</a>         (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             unsigned char *s);
void        <a href="raptor-section-xml.html#raptor-xml-writer-cdata-counted">raptor_xml_writer_cdata_counted</a> (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             unsigned char *s,
                                             unsigned int len);
void        <a href="raptor-section-xml.html#raptor-xml-writer-raw">raptor_xml_writer_raw</a>           (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             unsigned char *s);
void        <a href="raptor-section-xml.html#raptor-xml-writer-raw-counted">raptor_xml_writer_raw_counted</a>   (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             unsigned char *s,
                                             unsigned int len);
void        <a href="raptor-section-xml.html#raptor-xml-writer-comment">raptor_xml_writer_comment</a>       (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             unsigned char *s);
void        <a href="raptor-section-xml.html#raptor-xml-writer-comment-counted">raptor_xml_writer_comment_counted</a>
                                            (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             unsigned char *s,
                                             unsigned int len);
int         <a href="raptor-section-xml.html#raptor-xml-writer-features-enumerate">raptor_xml_writer_features_enumerate</a>
                                            (const <a href="raptor-section-feature.html#raptor-feature">raptor_feature</a> feature,
                                             const char **name,
                                             <a href="raptor-section-uri.html#raptor-uri">raptor_uri</a> **uri,
                                             const char **label);
int         <a href="raptor-section-xml.html#raptor-xml-writer-set-feature">raptor_xml_writer_set_feature</a>   (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             <a href="raptor-section-feature.html#raptor-feature">raptor_feature</a> feature,
                                             int value);
int         <a href="raptor-section-xml.html#raptor-xml-writer-set-feature-string">raptor_xml_writer_set_feature_string</a>
                                            (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             <a href="raptor-section-feature.html#raptor-feature">raptor_feature</a> feature,
                                             unsigned char *value);
int         <a href="raptor-section-xml.html#raptor-xml-writer-get-feature">raptor_xml_writer_get_feature</a>   (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             <a href="raptor-section-feature.html#raptor-feature">raptor_feature</a> feature);
const unsigned char* <a href="raptor-section-xml.html#raptor-xml-writer-get-feature-string">raptor_xml_writer_get_feature_string</a>
                                            (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             <a href="raptor-section-feature.html#raptor-feature">raptor_feature</a> feature);
int         <a href="raptor-section-xml.html#raptor-iostream-write-xml-element">raptor_iostream_write_xml_element</a>
                                            (<a href="raptor-section-iostream.html#raptor-iostream">raptor_iostream</a> *iostr,
                                             <a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *element,
                                             <a href="raptor-section-xml-namespace.html#raptor-namespace-stack">raptor_namespace_stack</a> *nstack,
                                             int is_empty,
                                             int is_end,
                                             <a href="raptor-section-general.html#raptor-simple-message-handler">raptor_simple_message_handler</a> error_handler,
                                             void *error_data,
                                             int depth);
typedef     <a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a>;
int         <a href="raptor-section-xml.html#raptor-xml-any-escape-string">raptor_xml_any_escape_string</a>    (unsigned char *string,
                                             size_t len,
                                             unsigned char *buffer,
                                             size_t length,
                                             char quote,
                                             int xml_version,
                                             <a href="raptor-section-general.html#raptor-simple-message-handler">raptor_simple_message_handler</a> error_handler,
                                             void *error_data);
int         <a href="raptor-section-xml.html#raptor-xml-escape-string">raptor_xml_escape_string</a>        (unsigned char *string,
                                             size_t len,
                                             unsigned char *buffer,
                                             size_t length,
                                             char quote,
                                             <a href="raptor-section-general.html#raptor-simple-message-handler">raptor_simple_message_handler</a> error_handler,
                                             void *error_data);
int         <a href="raptor-section-xml.html#raptor-iostream-write-xml-any-escaped-string">raptor_iostream_write_xml_any_escaped_string</a>
                                            (<a href="raptor-section-iostream.html#raptor-iostream">raptor_iostream</a> *iostr,
                                             unsigned char *string,
                                             size_t len,
                                             char quote,

redland/raptor/docs/html/raptor-section-xml.html  view on Meta::CPAN

Write a start XML element to the XML writer.
</p>
<p>
Closes any previous empty element if XML writer feature AUTO_EMPTY
is enabled.
</p>
<p>
Indents the start element if XML writer feature AUTO_INDENT is enabled.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>xml_writer</code></em>&#160;:</span></td>
<td> XML writer object
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>element</code></em>&#160;:</span></td>
<td> XML element object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2649108"></a><h3>
<a name="raptor-xml-writer-end-element"></a>raptor_xml_writer_end_element ()</h3>
<a class="indexterm" name="id2649121"></a><pre class="programlisting">void        raptor_xml_writer_end_element   (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             <a href="raptor-section-xml.html#raptor-xml-element">raptor_xml_element</a> *element);</pre>
<p>
Write an end XML element to the XML writer.
</p>
<p>
Indents the end element if XML writer feature AUTO_INDENT is enabled.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>xml_writer</code></em>&#160;:</span></td>
<td> XML writer object
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>element</code></em>&#160;:</span></td>
<td> XML element object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2649198"></a><h3>
<a name="raptor-xml-writer-cdata"></a>raptor_xml_writer_cdata ()</h3>
<a class="indexterm" name="id2649209"></a><pre class="programlisting">void        raptor_xml_writer_cdata         (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             unsigned char *s);</pre>
<p>
Write CDATA XML-escaped to the XML writer.
</p>
<p>
Closes any previous empty element if XML writer feature AUTO_EMPTY
is enabled.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>xml_writer</code></em>&#160;:</span></td>
<td> XML writer object
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>s</code></em>&#160;:</span></td>
<td> string to XML escape and write
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2649286"></a><h3>
<a name="raptor-xml-writer-cdata-counted"></a>raptor_xml_writer_cdata_counted ()</h3>
<a class="indexterm" name="id2649299"></a><pre class="programlisting">void        raptor_xml_writer_cdata_counted (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             unsigned char *s,
                                             unsigned int len);</pre>
<p>
Write counted CDATA XML-escaped to the XML writer.
</p>
<p>
Closes any previous empty element if XML writer feature AUTO_EMPTY
is enabled.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>xml_writer</code></em>&#160;:</span></td>
<td> XML writer object
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>s</code></em>&#160;:</span></td>
<td> string to XML escape and write
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>len</code></em>&#160;:</span></td>
<td> length of string
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2649365"></a><h3>
<a name="raptor-xml-writer-raw"></a>raptor_xml_writer_raw ()</h3>
<a class="indexterm" name="id2649376"></a><pre class="programlisting">void        raptor_xml_writer_raw           (<a href="raptor-section-xml.html#raptor-xml-writer">raptor_xml_writer</a> *xml_writer,
                                             unsigned char *s);</pre>
<p>
Write a string raw to the XML writer.
</p>
<p>
Closes any previous empty element if XML writer feature AUTO_EMPTY
is enabled.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>xml_writer</code></em>&#160;:</span></td>
<td> XML writer object
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>s</code></em>&#160;:</span></td>
<td> string to write
</td>
</tr>



( run in 1.084 second using v1.01-cache-2.11-cpan-39bf76dae61 )