<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Apache Portable Runtime Utility Library: include/apr_xml.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.4 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <h1>include/apr_xml.h</h1><a href="apr__xml_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Licensed to the Apache Software Foundation (ASF) under one or more</span> <a name="l00002"></a>00002 <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span> <a name="l00003"></a>00003 <span class="comment"> * this work for additional information regarding copyright ownership.</span> <a name="l00004"></a>00004 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span> <a name="l00005"></a>00005 <span class="comment"> * (the "License"); you may not use this file except in compliance with</span> <a name="l00006"></a>00006 <span class="comment"> * the License. You may obtain a copy of the License at</span> <a name="l00007"></a>00007 <span class="comment"> *</span> <a name="l00008"></a>00008 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span> <a name="l00009"></a>00009 <span class="comment"> *</span> <a name="l00010"></a>00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span> <a name="l00011"></a>00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span> <a name="l00012"></a>00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span> <a name="l00013"></a>00013 <span class="comment"> * See the License for the specific language governing permissions and</span> <a name="l00014"></a>00014 <span class="comment"> * limitations under the License.</span> <a name="l00015"></a>00015 <span class="comment"> */</span> <a name="l00020"></a>00020 <span class="preprocessor">#ifndef APR_XML_H</span> <a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define APR_XML_H</span> <a name="l00022"></a>00022 <span class="preprocessor"></span> <a name="l00028"></a>00028 <span class="preprocessor">#include "apr_pools.h"</span> <a name="l00029"></a>00029 <span class="preprocessor">#include "apr_tables.h"</span> <a name="l00030"></a>00030 <span class="preprocessor">#include "apr_file_io.h"</span> <a name="l00031"></a>00031 <a name="l00032"></a>00032 <span class="preprocessor">#include "apu.h"</span> <a name="l00033"></a>00033 <span class="preprocessor">#if APR_CHARSET_EBCDIC</span> <a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="apr__xlate_8h.html" title="APR I18N translation library.">apr_xlate.h</a>"</span> <a name="l00035"></a>00035 <span class="preprocessor">#endif</span> <a name="l00036"></a>00036 <span class="preprocessor"></span> <a name="l00037"></a>00037 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00039"></a>00039 <span class="preprocessor">#endif</span> <a name="l00040"></a>00040 <span class="preprocessor"></span> <a name="l00045"></a>00045 <span class="comment">/* -------------------------------------------------------------------- */</span> <a name="l00046"></a>00046 <a name="l00047"></a>00047 <span class="comment">/* ### these will need to move at some point to a more logical spot */</span> <a name="l00048"></a>00048 <a name="l00050"></a><a class="code" href="group___a_p_r___util___x_m_l.html#gfddd251818de0015559bc174f81fd743">00050</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__text.html">apr_text</a> <a class="code" href="structapr__text.html">apr_text</a>; <a name="l00051"></a>00051 <a name="l00053"></a><a class="code" href="structapr__text.html">00053</a> <span class="keyword">struct </span><a class="code" href="structapr__text.html">apr_text</a> { <a name="l00055"></a><a class="code" href="structapr__text.html#37a262695c36f740a7777ea9dd0b699d">00055</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structapr__text.html#37a262695c36f740a7777ea9dd0b699d">text</a>; <a name="l00057"></a><a class="code" href="structapr__text.html#af1b48e3f3085522fe7355e7d8893111">00057</a> <span class="keyword">struct </span><a class="code" href="structapr__text.html">apr_text</a> *<a class="code" href="structapr__text.html#af1b48e3f3085522fe7355e7d8893111">next</a>; <a name="l00058"></a>00058 }; <a name="l00059"></a>00059 <a name="l00061"></a><a class="code" href="group___a_p_r___util___x_m_l.html#gafc6d5ebd59b64a27146cf938a4086e0">00061</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__text__header.html">apr_text_header</a> <a class="code" href="structapr__text__header.html">apr_text_header</a>; <a name="l00062"></a>00062 <a name="l00064"></a><a class="code" href="structapr__text__header.html">00064</a> <span class="keyword">struct </span><a class="code" href="structapr__text__header.html">apr_text_header</a> { <a name="l00066"></a><a class="code" href="structapr__text__header.html#6db03d272f5e56058c84e10e49624c0b">00066</a> <a class="code" href="structapr__text.html">apr_text</a> *<a class="code" href="structapr__text__header.html#6db03d272f5e56058c84e10e49624c0b">first</a>; <a name="l00068"></a><a class="code" href="structapr__text__header.html#3ebe57b46d323b8cefaba1e114acf09e">00068</a> <a class="code" href="structapr__text.html">apr_text</a> *<a class="code" href="structapr__text__header.html#3ebe57b46d323b8cefaba1e114acf09e">last</a>; <a name="l00069"></a>00069 }; <a name="l00070"></a>00070 <a name="l00077"></a>00077 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keywordtype">void</span>) <a class="code" href="group___a_p_r___util___x_m_l.html#gf63dcaeeda623045860396304007aa49">apr_text_append</a>(apr_pool_t *p, <a class="code" href="structapr__text__header.html">apr_text_header</a> *hdr, <a name="l00078"></a>00078 const <span class="keywordtype">char</span> *text); <a name="l00079"></a>00079 <a name="l00080"></a>00080 <a name="l00081"></a>00081 <span class="comment">/* --------------------------------------------------------------------</span> <a name="l00082"></a>00082 <span class="comment">**</span> <a name="l00083"></a>00083 <span class="comment">** XML PARSING</span> <a name="l00084"></a>00084 <span class="comment">*/</span> <a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="comment">/*</span> <a name="l00087"></a>00087 <span class="comment">** Qualified namespace values</span> <a name="l00088"></a>00088 <span class="comment">**</span> <a name="l00089"></a>00089 <span class="comment">** APR_XML_NS_DAV_ID</span> <a name="l00090"></a>00090 <span class="comment">** We always insert the "DAV:" namespace URI at the head of the</span> <a name="l00091"></a>00091 <span class="comment">** namespace array. This means that it will always be at ID==0,</span> <a name="l00092"></a>00092 <span class="comment">** making it much easier to test for.</span> <a name="l00093"></a>00093 <span class="comment">**</span> <a name="l00094"></a>00094 <span class="comment">** APR_XML_NS_NONE</span> <a name="l00095"></a>00095 <span class="comment">** This special ID is used for two situations:</span> <a name="l00096"></a>00096 <span class="comment">**</span> <a name="l00097"></a>00097 <span class="comment">** 1) The namespace prefix begins with "xml" (and we do not know</span> <a name="l00098"></a>00098 <span class="comment">** what it means). Namespace prefixes with "xml" (any case) as</span> <a name="l00099"></a>00099 <span class="comment">** their first three characters are reserved by the XML Namespaces</span> <a name="l00100"></a>00100 <span class="comment">** specification for future use. mod_dav will pass these through</span> <a name="l00101"></a>00101 <span class="comment">** unchanged. When this identifier is used, the prefix is LEFT in</span> <a name="l00102"></a>00102 <span class="comment">** the element/attribute name. Downstream processing should not</span> <a name="l00103"></a>00103 <span class="comment">** prepend another prefix.</span> <a name="l00104"></a>00104 <span class="comment">**</span> <a name="l00105"></a>00105 <span class="comment">** 2) The element/attribute does not have a namespace.</span> <a name="l00106"></a>00106 <span class="comment">**</span> <a name="l00107"></a>00107 <span class="comment">** a) No prefix was used, and a default namespace has not been</span> <a name="l00108"></a>00108 <span class="comment">** defined.</span> <a name="l00109"></a>00109 <span class="comment">** b) No prefix was used, and the default namespace was specified</span> <a name="l00110"></a>00110 <span class="comment">** to mean "no namespace". This is done with a namespace</span> <a name="l00111"></a>00111 <span class="comment">** declaration of: xmlns=""</span> <a name="l00112"></a>00112 <span class="comment">** (this declaration is typically used to override a previous</span> <a name="l00113"></a>00113 <span class="comment">** specification for the default namespace)</span> <a name="l00114"></a>00114 <span class="comment">**</span> <a name="l00115"></a>00115 <span class="comment">** In these cases, we need to record that the elem/attr has no</span> <a name="l00116"></a>00116 <span class="comment">** namespace so that we will not attempt to prepend a prefix.</span> <a name="l00117"></a>00117 <span class="comment">** All namespaces that are used will have a prefix assigned to</span> <a name="l00118"></a>00118 <span class="comment">** them -- mod_dav will never set or use the default namespace</span> <a name="l00119"></a>00119 <span class="comment">** when generating XML. This means that "no prefix" will always</span> <a name="l00120"></a>00120 <span class="comment">** mean "no namespace".</span> <a name="l00121"></a>00121 <span class="comment">**</span> <a name="l00122"></a>00122 <span class="comment">** In both cases, the XML generation will avoid prepending a prefix.</span> <a name="l00123"></a>00123 <span class="comment">** For the first case, this means the original prefix/name will be</span> <a name="l00124"></a>00124 <span class="comment">** inserted into the output stream. For the latter case, it means</span> <a name="l00125"></a>00125 <span class="comment">** the name will have no prefix, and since we never define a default</span> <a name="l00126"></a>00126 <span class="comment">** namespace, this means it will have no namespace.</span> <a name="l00127"></a>00127 <span class="comment">**</span> <a name="l00128"></a>00128 <span class="comment">** Note: currently, mod_dav understands the "xmlns" prefix and the</span> <a name="l00129"></a>00129 <span class="comment">** "xml:lang" attribute. These are handled specially (they aren't</span> <a name="l00130"></a>00130 <span class="comment">** left within the XML tree), so the APR_XML_NS_NONE value won't ever</span> <a name="l00131"></a>00131 <span class="comment">** really apply to these values.</span> <a name="l00132"></a>00132 <span class="comment">*/</span> <a name="l00133"></a><a class="code" href="group___a_p_r___util___x_m_l.html#gd856851edabebf42e4150597c6f9d2c2">00133</a> <span class="preprocessor">#define APR_XML_NS_DAV_ID 0 </span> <a name="l00134"></a><a class="code" href="group___a_p_r___util___x_m_l.html#g2eed42f7f5e2b1932141f6bb5594b042">00134</a> <span class="preprocessor">#define APR_XML_NS_NONE -10 </span> <a name="l00136"></a><a class="code" href="group___a_p_r___util___x_m_l.html#g949c1a93de86c67576a0f2f225208447">00136</a> <span class="preprocessor">#define APR_XML_NS_ERROR_BASE -100 </span> <a name="l00138"></a><a class="code" href="group___a_p_r___util___x_m_l.html#g65029fb8740ec9eb85562df1300d125f">00138</a> <span class="preprocessor">#define APR_XML_NS_IS_ERROR(e) ((e) <= APR_XML_NS_ERROR_BASE)</span> <a name="l00139"></a>00139 <span class="preprocessor"></span> <a name="l00141"></a><a class="code" href="group___a_p_r___util___x_m_l.html#g4889d4d353f0ea0dabae2d5ae58dd07e">00141</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__xml__attr.html">apr_xml_attr</a> <a class="code" href="structapr__xml__attr.html">apr_xml_attr</a>; <a name="l00143"></a><a class="code" href="group___a_p_r___util___x_m_l.html#g31390d11ec04137c925ddf43c2223270">00143</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> <a class="code" href="structapr__xml__elem.html">apr_xml_elem</a>; <a name="l00145"></a><a class="code" href="group___a_p_r___util___x_m_l.html#g98eba70878b9460f2530e7a21bb6ae74">00145</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__xml__doc.html">apr_xml_doc</a> <a class="code" href="structapr__xml__doc.html">apr_xml_doc</a>; <a name="l00146"></a>00146 <a name="l00148"></a><a class="code" href="structapr__xml__attr.html">00148</a> <span class="keyword">struct </span><a class="code" href="structapr__xml__attr.html">apr_xml_attr</a> { <a name="l00150"></a><a class="code" href="structapr__xml__attr.html#2ac25d74e3fd8a521b70af15ae8c1257">00150</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structapr__xml__attr.html#2ac25d74e3fd8a521b70af15ae8c1257">name</a>; <a name="l00152"></a><a class="code" href="structapr__xml__attr.html#d08daf8b0b47796aae04b6aeaa332bc2">00152</a> <span class="keywordtype">int</span> <a class="code" href="structapr__xml__attr.html#d08daf8b0b47796aae04b6aeaa332bc2">ns</a>; <a name="l00153"></a>00153 <a name="l00155"></a><a class="code" href="structapr__xml__attr.html#12f0f611e426fe83704de92b3b11d2e3">00155</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structapr__xml__attr.html#12f0f611e426fe83704de92b3b11d2e3">value</a>; <a name="l00156"></a>00156 <a name="l00158"></a><a class="code" href="structapr__xml__attr.html#89a314d3136128eb2a37146ddb30da4f">00158</a> <span class="keyword">struct </span><a class="code" href="structapr__xml__attr.html">apr_xml_attr</a> *<a class="code" href="structapr__xml__attr.html#89a314d3136128eb2a37146ddb30da4f">next</a>; <a name="l00159"></a>00159 }; <a name="l00160"></a>00160 <a name="l00162"></a><a class="code" href="structapr__xml__elem.html">00162</a> <span class="keyword">struct </span><a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> { <a name="l00164"></a><a class="code" href="structapr__xml__elem.html#5b2fb684a9cfb244f88ad88f539fe3d6">00164</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structapr__xml__elem.html#5b2fb684a9cfb244f88ad88f539fe3d6">name</a>; <a name="l00166"></a><a class="code" href="structapr__xml__elem.html#613ea31964572df7b41f5a9da8d0982e">00166</a> <span class="keywordtype">int</span> <a class="code" href="structapr__xml__elem.html#613ea31964572df7b41f5a9da8d0982e">ns</a>; <a name="l00168"></a><a class="code" href="structapr__xml__elem.html#9a48a384f579816f62a7369aeb8b1a0c">00168</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structapr__xml__elem.html#9a48a384f579816f62a7369aeb8b1a0c">lang</a>; <a name="l00169"></a>00169 <a name="l00171"></a><a class="code" href="structapr__xml__elem.html#732e8acd00e43330674fde57ef87163f">00171</a> <a class="code" href="structapr__text__header.html">apr_text_header</a> <a class="code" href="structapr__xml__elem.html#732e8acd00e43330674fde57ef87163f">first_cdata</a>; <a name="l00173"></a><a class="code" href="structapr__xml__elem.html#8d64c5343354e34c1cc7ac67f51cc89a">00173</a> <a class="code" href="structapr__text__header.html">apr_text_header</a> <a class="code" href="structapr__xml__elem.html#8d64c5343354e34c1cc7ac67f51cc89a">following_cdata</a>; <a name="l00174"></a>00174 <a name="l00176"></a><a class="code" href="structapr__xml__elem.html#0fd30b383f2659a9ef245c2e99cb707d">00176</a> <span class="keyword">struct </span><a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> *<a class="code" href="structapr__xml__elem.html#0fd30b383f2659a9ef245c2e99cb707d">parent</a>; <a name="l00178"></a><a class="code" href="structapr__xml__elem.html#8687253d504b1c1363c47117611042ac">00178</a> <span class="keyword">struct </span><a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> *<a class="code" href="structapr__xml__elem.html#8687253d504b1c1363c47117611042ac">next</a>; <a name="l00180"></a><a class="code" href="structapr__xml__elem.html#620a28337f36592d4cb1f6dd3d2e97e0">00180</a> <span class="keyword">struct </span><a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> *<a class="code" href="structapr__xml__elem.html#620a28337f36592d4cb1f6dd3d2e97e0">first_child</a>; <a name="l00182"></a><a class="code" href="structapr__xml__elem.html#a9c71585c0b2a32269852047aebdd61c">00182</a> <span class="keyword">struct </span><a class="code" href="structapr__xml__attr.html">apr_xml_attr</a> *<a class="code" href="structapr__xml__elem.html#a9c71585c0b2a32269852047aebdd61c">attr</a>; <a name="l00183"></a>00183 <a name="l00184"></a>00184 <span class="comment">/* used only during parsing */</span> <a name="l00186"></a><a class="code" href="structapr__xml__elem.html#d4f49811fc36f2377c72ac2c19e57abd">00186</a> <span class="keyword">struct </span><a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> *<a class="code" href="structapr__xml__elem.html#d4f49811fc36f2377c72ac2c19e57abd">last_child</a>; <a name="l00188"></a><a class="code" href="structapr__xml__elem.html#ddfd70c22965dca4f7574639424a0c32">00188</a> <span class="keyword">struct </span>apr_xml_ns_scope *<a class="code" href="structapr__xml__elem.html#ddfd70c22965dca4f7574639424a0c32">ns_scope</a>; <a name="l00189"></a>00189 <a name="l00190"></a>00190 <span class="comment">/* used by modules during request processing */</span> <a name="l00192"></a><a class="code" href="structapr__xml__elem.html#0bc4296aedb5d047325f86080604d939">00192</a> <span class="keywordtype">void</span> *<a class="code" href="structapr__xml__elem.html#0bc4296aedb5d047325f86080604d939">priv</a>; <a name="l00193"></a>00193 }; <a name="l00194"></a>00194 <a name="l00196"></a><a class="code" href="group___a_p_r___util___x_m_l.html#ga5792e7a2aa38dc98a93b0762c98441f">00196</a> <span class="preprocessor">#define APR_XML_ELEM_IS_EMPTY(e) ((e)->first_child == NULL && \</span> <a name="l00197"></a>00197 <span class="preprocessor"> (e)->first_cdata.first == NULL)</span> <a name="l00198"></a>00198 <span class="preprocessor"></span> <a name="l00200"></a><a class="code" href="structapr__xml__doc.html">00200</a> <span class="keyword">struct </span><a class="code" href="structapr__xml__doc.html">apr_xml_doc</a> { <a name="l00202"></a><a class="code" href="structapr__xml__doc.html#9385ccf062ed6997d2d59d80cda28a71">00202</a> <a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> *<a class="code" href="structapr__xml__doc.html#9385ccf062ed6997d2d59d80cda28a71">root</a>; <a name="l00204"></a><a class="code" href="structapr__xml__doc.html#6aee4d0e4516c9b8191ad734c2748d39">00204</a> apr_array_header_t *<a class="code" href="structapr__xml__doc.html#6aee4d0e4516c9b8191ad734c2748d39">namespaces</a>; <a name="l00205"></a>00205 }; <a name="l00206"></a>00206 <a name="l00208"></a><a class="code" href="group___a_p_r___util___x_m_l.html#gb08a1c255615afda782318811a5053d9">00208</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group___a_p_r___util___x_m_l.html#gb08a1c255615afda782318811a5053d9">apr_xml_parser</a> <a class="code" href="group___a_p_r___util___x_m_l.html#gb08a1c255615afda782318811a5053d9">apr_xml_parser</a>; <a name="l00209"></a>00209 <a name="l00215"></a>00215 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<a class="code" href="group___a_p_r___util___x_m_l.html#gb08a1c255615afda782318811a5053d9">apr_xml_parser</a> *) <a class="code" href="group___a_p_r___util___x_m_l.html#g438b6b9f15ecd8c22a602c9d5f87bd5c">apr_xml_parser_create</a>(apr_pool_t *pool); <a name="l00216"></a>00216 <a name="l00227"></a>00227 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(apr_status_t) <a class="code" href="group___a_p_r___util___x_m_l.html#gd65e09202d9f2eb46cb1d681d7005076">apr_xml_parse_file</a>(apr_pool_t *p, <a name="l00228"></a>00228 <a class="code" href="group___a_p_r___util___x_m_l.html#gb08a1c255615afda782318811a5053d9">apr_xml_parser</a> **parser, <a name="l00229"></a>00229 <a class="code" href="structapr__xml__doc.html">apr_xml_doc</a> **ppdoc, <a name="l00230"></a>00230 apr_file_t *xmlfd, <a name="l00231"></a>00231 apr_size_t buffer_length); <a name="l00232"></a>00232 <a name="l00233"></a>00233 <a name="l00242"></a>00242 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(apr_status_t) <a class="code" href="group___a_p_r___util___x_m_l.html#g8b1f79c70267b30bc56a69df0b7d05ca">apr_xml_parser_feed</a>(<a class="code" href="group___a_p_r___util___x_m_l.html#gb08a1c255615afda782318811a5053d9">apr_xml_parser</a> *parser, <a name="l00243"></a>00243 const <span class="keywordtype">char</span> *data, <a name="l00244"></a>00244 apr_size_t len); <a name="l00245"></a>00245 <a name="l00254"></a>00254 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(apr_status_t) <a class="code" href="group___a_p_r___util___x_m_l.html#g69d883e7fcaf0f98d6df69d7ff3ba523">apr_xml_parser_done</a>(<a class="code" href="group___a_p_r___util___x_m_l.html#gb08a1c255615afda782318811a5053d9">apr_xml_parser</a> *parser, <a name="l00255"></a>00255 <a class="code" href="structapr__xml__doc.html">apr_xml_doc</a> **pdoc); <a name="l00256"></a>00256 <a name="l00264"></a>00264 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keywordtype">char</span> *) <a class="code" href="group___a_p_r___util___x_m_l.html#gde6ff47b3d0b714e2b61bc1845b47743">apr_xml_parser_geterror</a>(<a class="code" href="group___a_p_r___util___x_m_l.html#gb08a1c255615afda782318811a5053d9">apr_xml_parser</a> *parser, <a name="l00265"></a>00265 <span class="keywordtype">char</span> *errbuf, <a name="l00266"></a>00266 apr_size_t errbufsize); <a name="l00267"></a>00267 <a name="l00268"></a>00268 <a name="l00285"></a>00285 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keywordtype">void</span>) <a class="code" href="group___a_p_r___util___x_m_l.html#g4485edce130dc1e9a3da3a633a75ffb3">apr_xml_to_text</a>(apr_pool_t *p, const <a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> *elem, <a name="l00286"></a>00286 <span class="keywordtype">int</span> style, apr_array_header_t *namespaces, <a name="l00287"></a>00287 <span class="keywordtype">int</span> *ns_map, const <span class="keywordtype">char</span> **pbuf, <a name="l00288"></a>00288 apr_size_t *psize); <a name="l00289"></a>00289 <a name="l00290"></a>00290 <span class="comment">/* style argument values: */</span> <a name="l00291"></a><a class="code" href="group___a_p_r___util___x_m_l.html#geb48abf8de020df9bad57cfc7ca35747">00291</a> <span class="preprocessor">#define APR_XML_X2T_FULL 0 </span> <a name="l00292"></a><a class="code" href="group___a_p_r___util___x_m_l.html#g715a5e536efbfa24854531008cf4bdce">00292</a> <span class="preprocessor">#define APR_XML_X2T_INNER 1 </span> <a name="l00293"></a><a class="code" href="group___a_p_r___util___x_m_l.html#g4cd40106902732169b8fe7579ba2e67c">00293</a> <span class="preprocessor">#define APR_XML_X2T_LANG_INNER 2 </span> <a name="l00294"></a><a class="code" href="group___a_p_r___util___x_m_l.html#g7b2cd4c48940cd95a56ace294a94d938">00294</a> <span class="preprocessor">#define APR_XML_X2T_FULL_NS_LANG 3 </span> <a name="l00302"></a>00302 <span class="preprocessor">APU_DECLARE(const char *) apr_xml_empty_elem(apr_pool_t *p,</span> <a name="l00303"></a>00303 <span class="preprocessor"></span> <span class="keyword">const</span> <a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> *elem); <a name="l00304"></a>00304 <a name="l00315"></a>00315 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *) <a class="code" href="group___a_p_r___util___x_m_l.html#g084970837d60613476e8ac1abd7651f0">apr_xml_quote_string</a>(apr_pool_t *p, const <span class="keywordtype">char</span> *s, <a name="l00316"></a>00316 <span class="keywordtype">int</span> quotes); <a name="l00317"></a>00317 <a name="l00323"></a>00323 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keywordtype">void</span>) <a class="code" href="group___a_p_r___util___x_m_l.html#g709c6294a67b450459669e3be45a9aba">apr_xml_quote_elem</a>(apr_pool_t *p, <a class="code" href="structapr__xml__elem.html">apr_xml_elem</a> *elem); <a name="l00324"></a>00324 <a name="l00325"></a>00325 <span class="comment">/* manage an array of unique URIs: apr_xml_insert_uri() and APR_XML_URI_ITEM() */</span> <a name="l00326"></a>00326 <a name="l00333"></a>00333 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keywordtype">int</span>) <a class="code" href="group___a_p_r___util___x_m_l.html#g25a4f0e204fc99ce5000221befc55847">apr_xml_insert_uri</a>(apr_array_header_t *uri_array, <a name="l00334"></a>00334 const <span class="keywordtype">char</span> *uri); <a name="l00335"></a>00335 <a name="l00337"></a><a class="code" href="group___a_p_r___util___x_m_l.html#gf31ae94be9e1db1ee0175f7c0c40e3a7">00337</a> <span class="preprocessor">#define APR_XML_GET_URI_ITEM(ary, i) (((const char * const *)(ary)->elts)[i])</span> <a name="l00338"></a>00338 <span class="preprocessor"></span> <a name="l00339"></a>00339 <span class="preprocessor">#if APR_CHARSET_EBCDIC</span> <a name="l00340"></a>00340 <span class="preprocessor"></span> <a name="l00347"></a>00347 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(apr_status_t) apr_xml_parser_convert_doc(apr_pool_t *p, <a name="l00348"></a>00348 <a class="code" href="structapr__xml__doc.html">apr_xml_doc</a> *pdoc, <a name="l00349"></a>00349 <a class="code" href="group___a_p_r___x_l_a_t_e.html#g069dabbadc30e3a4157c38104a250e77">apr_xlate_t</a> *convset); <a name="l00350"></a>00350 <span class="preprocessor">#endif</span> <a name="l00351"></a>00351 <span class="preprocessor"></span> <a name="l00352"></a>00352 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00353"></a>00353 <span class="preprocessor"></span>} <a name="l00354"></a>00354 <span class="preprocessor">#endif</span> <a name="l00355"></a>00355 <span class="preprocessor"></span> <a name="l00356"></a>00356 <span class="preprocessor">#endif </span><span class="comment">/* APR_XML_H */</span> </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 24 02:22:55 2008 for Apache Portable Runtime Utility Library by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address> </body> </html>