GME
13
|
#define APR_XML_ELEM_IS_EMPTY | ( | e | ) |
#define APR_XML_GET_URI_ITEM | ( | ary, | |
i | |||
) | (((const char * const *)(ary)->elts)[i]) |
#define APR_XML_NS_DAV_ID 0 |
#define APR_XML_NS_ERROR_BASE -100 |
#define APR_XML_NS_IS_ERROR | ( | e | ) | ((e) <= APR_XML_NS_ERROR_BASE) |
#define APR_XML_NS_NONE -10 |
#define APR_XML_X2T_FULL 0 |
#define APR_XML_X2T_FULL_NS_LANG 3 |
#define APR_XML_X2T_INNER 1 |
#define APR_XML_X2T_LANG_INNER 2 |
typedef struct apr_text_header apr_text_header |
typedef struct apr_xml_attr apr_xml_attr |
typedef struct apr_xml_doc apr_xml_doc |
typedef struct apr_xml_elem apr_xml_elem |
typedef struct apr_xml_parser apr_xml_parser |
APU_DECLARE | ( | void | ) |
Append a piece of text to the end of a list
p | The pool to allocate out of |
hdr | The text header to append to |
text | The new text to append |
Converts an XML element tree to flat text
p | The pool to allocate out of |
elem | The XML element to convert |
style | How to covert the XML. One of: APR_XML_X2T_FULL start tag, contents, end tag APR_XML_X2T_INNER contents only APR_XML_X2T_LANG_INNER xml:lang + inner contents APR_XML_X2T_FULL_NS_LANG FULL + ns defns + xml:lang |
namespaces | The namespace of the current XML element |
ns_map | Namespace mapping |
pbuf | Buffer to put the converted text into |
psize | Size of the converted text |
Quote an XML element
p | The pool to allocate out of |
elem | The element to quote |
APU_DECLARE | ( | apr_xml_parser * | ) |
Create an XML parser
pool | The pool for allocating the parser and the parse results. |
Parse a File, producing a xml_doc
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 successful 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 |
Feed input into the parser
parser | The XML parser for parsing this data. |
data | The data to parse. |
len | The length of the data. |
Terminate the parsing and return the result
parser | The XML parser for parsing this data. |
pdoc | The resulting parse information. May be NULL to simply terminate the parsing without fetching the info. |
return the URI's (existing) index, or insert it and return a new index
uri_array | array to insert into |
uri | The uri to insert |
APU_DECLARE | ( | char * | ) |
Fetch additional error information from the parser.
parser | The XML parser to query for errors. |
errbuf | A buffer for storing error text. |
errbufsize | The length of the error text buffer. |
APU_DECLARE | ( | const char * | ) |
empty XML element
p | The pool to allocate out of |
elem | The XML element to empty |
quote an XML string Replace '<', '>', and '&' with '<', '>', and '&'.
p | The pool to allocate out of |
s | The string to quote |
quotes | If quotes is true, then replace '"' with '"'. |
apr_xml_parser apr_xml_doc apr_file_t apr_size_t buffer_length |
char apr_size_t errbufsize |
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 apr_xml_elem int style |
apr_text_header const char* text |