20 char const *r2 = node->
src.buf + pos;
22 while (size-- && (*r1++ = *r2++)) ;
24 ret_len = r1 - buffer;
39 context->
src = (
void *)buffer;
42 if (ret >= 0 && context->
lvl != 0)
43 ROXML_PARSE_ERROR(
"mismatch in open/close nodes");
44 return (ret < 0) ? 1 : 0;
49 node_t *current_node = NULL;
ROXML_INT int roxml_read_buff(int pos, int size, char *buffer, node_t *node)
read xml doc function
ROXML_INT void roxml_close_buff(node_t *n)
unload function
ROXML_INT int roxml_parse_buff(roxml_load_ctx_t *context, roxml_parser_item_t *parser, char *buffer)
generic load function
ROXML_API node_t * roxml_load_buf(char *buffer)
load function for buffers
ROXML_INT node_t * roxml_create_node(int pos, void *src, int type)
internal function
ROXML_INT node_t * roxml_load(node_t *current_node, FILE *file, char *buffer)
generic load function
internal header required by all libroxml sources
ROXML_INT int roxml_parse_line(roxml_parser_item_t *parser, char *line, int len, void *ctx)
line parsing function