Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

XML


Namespaces

namespace  Apache

Data Structures

struct  apr_text
struct  apr_text_header
struct  apr_xml_attr
struct  apr_xml_elem
struct  apr_xml_doc

Defines

#define APR_XML_NS_DAV_ID   0
#define APR_XML_NS_NONE   -10
#define APR_XML_NS_ERROR_BASE   -100
#define APR_XML_NS_IS_ERROR(e)   ((e) <= APR_XML_NS_ERROR_BASE)
#define APR_XML_ELEM_IS_EMPTY(e)
#define APR_XML_X2T_FULL   0
#define APR_XML_X2T_INNER   1
#define APR_XML_X2T_LANG_INNER   2
#define APR_XML_X2T_FULL_NS_LANG   3
#define APR_XML_GET_URI_ITEM(ary, i)   (((const char * const *)(ary)->elts)[i])

Typedefs

typedef apr_text apr_text
typedef apr_text_header apr_text_header
typedef apr_xml_attr apr_xml_attr
typedef apr_xml_elem apr_xml_elem
typedef apr_xml_doc apr_xml_doc
typedef apr_xml_parser apr_xml_parser

Functions

 APU_DECLARE (void) apr_text_append(apr_pool_t *p
 APU_DECLARE (apr_xml_parser *) apr_xml_parser_create(apr_pool_t *pool)
 APU_DECLARE (apr_status_t) apr_xml_parse_file(apr_pool_t *p
 APU_DECLARE (char *) apr_xml_parser_geterror(apr_xml_parser *parser
 APU_DECLARE (const char *) apr_xml_empty_elem(apr_pool_t *p
 APU_DECLARE (int) apr_xml_insert_uri(apr_array_header_t *uri_array

Variables

apr_text_headerhdr
apr_text_header const char * text
apr_xml_parser ** parser
apr_xml_parser apr_xml_doc ** ppdoc
apr_xml_parser apr_xml_doc
apr_file_t
xmlfd
apr_xml_parser apr_xml_doc
apr_file_t apr_size_t 
buffer_length
const char * data
const char apr_size_t len
apr_xml_doc ** pdoc
char * errbuf
char apr_size_t errbufsize
const apr_xml_elemelem
const apr_xml_elem int style
const apr_xml_elem int apr_array_header_tnamespaces
const apr_xml_elem int apr_array_header_t
int
ns_map
const apr_xml_elem int apr_array_header_t
int const char ** 
pbuf
const apr_xml_elem int apr_array_header_t
int const char apr_size_t * 
psize
const char * s
const char int quotes
const char * uri

Define Documentation

#define APR_XML_ELEM_IS_EMPTY e   ) 
 

Value:

((e)->first_child == NULL && \
                                  (e)->first_cdata.first == NULL)
Is this XML element empty?

Definition at line 193 of file apr_xml.h.

Referenced by elem_size(), and write_elem().

#define APR_XML_GET_URI_ITEM ary,
 )     (((const char * const *)(ary)->elts)[i])
 

Get the URI item for this XML element

Definition at line 334 of file apr_xml.h.

Referenced by APU_DECLARE(), dav_begin_multistatus(), DAV_DECLARE(), DAV_DECLARE_NONSTD(), dav_find_liveprop(), elem_size(), and write_elem().

#define APR_XML_NS_DAV_ID   0
 

namespace ID for "DAV:"

Definition at line 130 of file apr_xml.h.

Referenced by DAV_DECLARE(), dav_find_liveprop(), dav_gen_supported_live_props(), dav_gen_supported_methods(), dav_gen_supported_reports(), dav_method_checkout(), dav_method_options(), and dav_method_proppatch().

#define APR_XML_NS_ERROR_BASE   -100
 

used only during processing

Definition at line 133 of file apr_xml.h.

#define APR_XML_NS_IS_ERROR e   )     ((e) <= APR_XML_NS_ERROR_BASE)
 

Is this namespace an error?

Definition at line 135 of file apr_xml.h.

Referenced by start_handler().

#define APR_XML_NS_NONE   -10
 

no namespace for this elem/attr

Definition at line 131 of file apr_xml.h.

Referenced by APU_DECLARE(), DAV_DECLARE(), DAV_DECLARE_NONSTD(), dav_find_liveprop(), elem_size(), find_prefix(), start_handler(), and write_elem().

#define APR_XML_X2T_FULL   0
 

start tag, contents, end tag

Definition at line 288 of file apr_xml.h.

Referenced by elem_size(), and write_elem().

#define APR_XML_X2T_FULL_NS_LANG   3
 

FULL + ns defns + xml:lang

Definition at line 291 of file apr_xml.h.

Referenced by DAV_DECLARE(), elem_size(), and write_elem().

#define APR_XML_X2T_INNER   1
 

contents only

Definition at line 289 of file apr_xml.h.

Referenced by dav_method_label(), dav_method_update(), and dav_method_vsn_control().

#define APR_XML_X2T_LANG_INNER   2
 

xml:lang + inner contents

Definition at line 290 of file apr_xml.h.

Referenced by dav_propdb_store(), elem_size(), and write_elem().


Typedef Documentation

typedef struct apr_text apr_text
 

See also:
apr_text

Definition at line 47 of file apr_xml.h.

typedef struct apr_text_header apr_text_header
 

See also:
apr_text_header

Definition at line 58 of file apr_xml.h.

typedef struct apr_xml_attr apr_xml_attr
 

See also:
apr_xml_attr

Definition at line 138 of file apr_xml.h.

typedef struct apr_xml_doc apr_xml_doc
 

See also:
apr_xml_doc

Definition at line 142 of file apr_xml.h.

typedef struct apr_xml_elem apr_xml_elem
 

See also:
apr_xml_elem

Definition at line 140 of file apr_xml.h.

typedef struct apr_xml_parser apr_xml_parser
 

Opaque XML parser structure

Definition at line 205 of file apr_xml.h.


Function Documentation

APU_DECLARE int   ) 
 

return the URI's (existing) index, or insert it and return a new index

Parameters:
uri_array array to insert into
uri The uri to insert
Returns:
int The uri's index

Definition at line 44 of file apr_buckets_refcount.c.

APU_DECLARE const char *   ) 
 

empty XML element

Parameters:
p The pool to allocate out of
elem The XML element to empty
Returns:
the string that was stored in the XML element

Definition at line 852 of file apr_xml.c.

APU_DECLARE char *   ) 
 

Fetch additional error information from the parser.

Parameters:
parser The XML parser to query for errors.
errbuf A buffer for storing error text.
errbufsize The length of the error text buffer.
Returns:
The error buffer

APU_DECLARE apr_status_t   ) 
 

Parse a File, producing a xml_doc

Parameters:
p The pool for allocating the parse results.
parser A pointer to *parser (needed so calling function can get errors), will be set to NULL on successfull completion.
ppdoc A pointer to *apr_xml_doc (which has the parsed results in it)
xmlfd A file to read from.
buffer_length Buffer length which would be suitable
Returns:
Any errors found during parsing.

Definition at line 37 of file apr_brigade.c.

References APR_BRIGADE_EMPTY, APR_BRIGADE_FIRST, apr_bucket_delete, APR_SUCCESS, b, and e.

APU_DECLARE apr_xml_parser  ) 
 

Create an XML parser

Parameters:
pool The pool for allocating the parser and the parse results.
Returns:
The new parser.

Definition at line 342 of file apr_xml.c.

APU_DECLARE void   ) 
 

Append a piece of text to the end of a list

Parameters:
p The pool to allocate out of
hdr The text header to append to
text The new text to append

Definition at line 206 of file apr_sha1.c.


Variable Documentation

apr_xml_parser apr_xml_doc apr_file_t apr_size_t buffer_length
 

Definition at line 225 of file apr_xml.h.

const char* data
 

Definition at line 240 of file apr_xml.h.

apr_xml_elem * elem
 

Definition at line 320 of file apr_xml.h.

Referenced by ap_queue_pop(), ap_queue_push(), cdata_handler(), dav_cache_badprops(), DAV_DECLARE(), dav_method_options(), find_prefix(), and start_handler().

char* errbuf
 

Definition at line 262 of file apr_xml.h.

char apr_size_t errbufsize
 

Definition at line 262 of file apr_xml.h.

apr_text_header* hdr
 

Definition at line 74 of file apr_xml.h.

Referenced by add_auth_info(), cdata_handler(), dav_cache_badprops(), DAV_DECLARE(), dav_failed_proppatch(), dav_success_proppatch(), do_headers_fixup(), header_cmd(), header_inout_cmd(), ssl_var_lookup_header(), and unserialize_table().

const char apr_size_t len
 

Definition at line 240 of file apr_xml.h.

const apr_xml_elem int apr_array_header_t* namespaces
 

Definition at line 282 of file apr_xml.h.

const apr_xml_elem int apr_array_header_t int* ns_map
 

Definition at line 282 of file apr_xml.h.

apr_xml_parser** parser
 

Definition at line 225 of file apr_xml.h.

Referenced by AP_DECLARE(), APU_DECLARE(), cdata_handler(), cleanup_parser(), end_handler(), main(), start_handler(), XML_ExternalEntityParserCreate(), and XML_ParserCreate_MM().

const apr_xml_elem int apr_array_header_t int const char** pbuf
 

Definition at line 282 of file apr_xml.h.

apr_xml_doc** pdoc
 

Definition at line 252 of file apr_xml.h.

apr_xml_parser apr_xml_doc** ppdoc
 

Definition at line 225 of file apr_xml.h.

const apr_xml_elem int apr_array_header_t int const char apr_size_t* psize
 

Definition at line 282 of file apr_xml.h.

const char int quotes
 

Definition at line 312 of file apr_xml.h.

const char* s
 

Definition at line 312 of file apr_xml.h.

const apr_xml_elem int style
 

Definition at line 282 of file apr_xml.h.

apr_text_header const char* text
 

Definition at line 74 of file apr_xml.h.

Referenced by CuStringAppendChar(), and DAV_DECLARE().

const char* uri
 

Definition at line 331 of file apr_xml.h.

apr_xml_parser apr_xml_doc apr_file_t* xmlfd
 

Definition at line 225 of file apr_xml.h.