28 #include "apr_pools.h"
29 #include "apr_tables.h"
30 #include "apr_file_io.h"
33 #if APR_CHARSET_EBCDIC
133 #define APR_XML_NS_DAV_ID 0
134 #define APR_XML_NS_NONE -10
136 #define APR_XML_NS_ERROR_BASE -100
138 #define APR_XML_NS_IS_ERROR(e) ((e) <= APR_XML_NS_ERROR_BASE)
196 #define APR_XML_ELEM_IS_EMPTY(e) ((e)->first_child == NULL && \
197 (e)->first_cdata.first == NULL)
231 apr_size_t buffer_length);
266 apr_size_t errbufsize);
286 int style, apr_array_header_t *namespaces,
287 int *ns_map, const
char **pbuf,
291 #define APR_XML_X2T_FULL 0
292 #define APR_XML_X2T_INNER 1
293 #define APR_XML_X2T_LANG_INNER 2
294 #define APR_XML_X2T_FULL_NS_LANG 3
302 APU_DECLARE(const char *) apr_xml_empty_elem(apr_pool_t *p,
337 #define APR_XML_GET_URI_ITEM(ary, i) (((const char * const *)(ary)->elts)[i])
339 #if APR_CHARSET_EBCDIC
347 APU_DECLARE(apr_status_t) apr_xml_parser_convert_doc(apr_pool_t *p,
const char * apr_xml_quote_string(apr_pool_t *p, const char *s, int quotes)
Definition: apr_xml.h:148
Definition: apr_xml.h:200
apr_xml_elem * root
Definition: apr_xml.h:202
struct apr_xml_elem * last_child
Definition: apr_xml.h:186
Definition: apr_xml.h:162
apr_status_t apr_xml_parser_feed(apr_xml_parser *parser, const char *data, apr_size_t len)
int ns
Definition: apr_xml.h:166
int apr_xml_insert_uri(apr_array_header_t *uri_array, const char *uri)
struct apr_xml_parser apr_xml_parser
Definition: apr_xml.h:208
const char * name
Definition: apr_xml.h:150
apr_text_header first_cdata
Definition: apr_xml.h:171
apr_status_t apr_xml_parse_file(apr_pool_t *p, apr_xml_parser **parser, apr_xml_doc **ppdoc, apr_file_t *xmlfd, apr_size_t buffer_length)
const char * lang
Definition: apr_xml.h:168
void apr_text_append(apr_pool_t *p, apr_text_header *hdr, const char *text)
struct apr_xml_elem * parent
Definition: apr_xml.h:176
struct apr_xml_ns_scope * ns_scope
Definition: apr_xml.h:188
struct apr_xlate_t apr_xlate_t
Definition: apr_xlate.h:39
struct apr_xml_attr * next
Definition: apr_xml.h:158
void apr_xml_quote_elem(apr_pool_t *p, apr_xml_elem *elem)
const char * value
Definition: apr_xml.h:155
void * priv
Definition: apr_xml.h:192
apr_text_header following_cdata
Definition: apr_xml.h:173
const char * text
Definition: apr_xml.h:55
apr_xml_parser * apr_xml_parser_create(apr_pool_t *pool)
apr_status_t apr_xml_parser_done(apr_xml_parser *parser, apr_xml_doc **pdoc)
void apr_xml_to_text(apr_pool_t *p, const apr_xml_elem *elem, int style, apr_array_header_t *namespaces, int *ns_map, const char **pbuf, apr_size_t *psize)
struct apr_xml_elem * first_child
Definition: apr_xml.h:180
int ns
Definition: apr_xml.h:152
const char * name
Definition: apr_xml.h:164
apr_array_header_t * namespaces
Definition: apr_xml.h:204
APR I18N translation library.
struct apr_xml_attr * attr
Definition: apr_xml.h:182
char * apr_xml_parser_geterror(apr_xml_parser *parser, char *errbuf, apr_size_t errbufsize)
struct apr_xml_elem * next
Definition: apr_xml.h:178
struct apr_text * next
Definition: apr_xml.h:57