Lines Matching refs:ctx

18 int xml_validate(struct xml_node_ctx *ctx, xml_node_t *node,
20 int xml_validate_dtd(struct xml_node_ctx *ctx, xml_node_t *node,
22 void xml_node_free(struct xml_node_ctx *ctx, xml_node_t *node);
23 xml_node_t * xml_node_get_parent(struct xml_node_ctx *ctx, xml_node_t *node);
24 xml_node_t * xml_node_from_buf(struct xml_node_ctx *ctx, const char *buf);
25 const char * xml_node_get_localname(struct xml_node_ctx *ctx,
27 char * xml_node_to_str(struct xml_node_ctx *ctx, xml_node_t *node);
28 void xml_node_detach(struct xml_node_ctx *ctx, xml_node_t *node);
29 void xml_node_add_child(struct xml_node_ctx *ctx, xml_node_t *parent,
31 xml_node_t * xml_node_create_root(struct xml_node_ctx *ctx, const char *ns_uri,
34 xml_node_t * xml_node_create(struct xml_node_ctx *ctx, xml_node_t *parent,
36 xml_node_t * xml_node_create_text(struct xml_node_ctx *ctx,
39 xml_node_t * xml_node_create_text_ns(struct xml_node_ctx *ctx,
42 void xml_node_set_text(struct xml_node_ctx *ctx, xml_node_t *node,
44 int xml_node_add_attr(struct xml_node_ctx *ctx, xml_node_t *node,
46 char * xml_node_get_attr_value(struct xml_node_ctx *ctx, xml_node_t *node,
48 char * xml_node_get_attr_value_ns(struct xml_node_ctx *ctx, xml_node_t *node,
50 void xml_node_get_attr_value_free(struct xml_node_ctx *ctx, char *val);
51 xml_node_t * xml_node_first_child(struct xml_node_ctx *ctx,
53 xml_node_t * xml_node_next_sibling(struct xml_node_ctx *ctx,
55 int xml_node_is_element(struct xml_node_ctx *ctx, xml_node_t *node);
56 char * xml_node_get_text(struct xml_node_ctx *ctx, xml_node_t *node);
57 void xml_node_get_text_free(struct xml_node_ctx *ctx, char *val);
58 char * xml_node_get_base64_text(struct xml_node_ctx *ctx, xml_node_t *node,
60 xml_node_t * xml_node_copy(struct xml_node_ctx *ctx, xml_node_t *node);
62 #define xml_node_for_each_child(ctx, child, parent) \
63 for (child = xml_node_first_child(ctx, parent); \
65 child = xml_node_next_sibling(ctx, child))
67 #define xml_node_for_each_sibling(ctx, node) \
70 node = xml_node_next_sibling(ctx, node))
72 #define xml_node_for_each_check(ctx, child) \
73 if (!xml_node_is_element(ctx, child)) \
79 void xml_node_deinit_ctx(struct xml_node_ctx *ctx);
82 xml_node_t * get_node_uri(struct xml_node_ctx *ctx, xml_node_t *root,
84 xml_node_t * get_node(struct xml_node_ctx *ctx, xml_node_t *root,
86 xml_node_t * get_child_node(struct xml_node_ctx *ctx, xml_node_t *root,
88 xml_node_t * node_from_file(struct xml_node_ctx *ctx, const char *name);
89 int node_to_file(struct xml_node_ctx *ctx, const char *fname, xml_node_t *node);
90 xml_node_t * mo_to_tnds(struct xml_node_ctx *ctx, xml_node_t *mo,
92 xml_node_t * tnds_to_mo(struct xml_node_ctx *ctx, xml_node_t *tnds);
94 xml_node_t * soap_build_envelope(struct xml_node_ctx *ctx, xml_node_t *node);
95 xml_node_t * soap_get_body(struct xml_node_ctx *ctx, xml_node_t *soap);