Home | History | Annotate | Download | only in utils

Lines Matching refs:node

19 	xml_node_t *node;
26 node = root;
27 xml_node_for_each_sibling(ctx, node) {
28 xml_node_for_each_check(ctx, node);
29 name = xml_node_get_localname(ctx, node);
34 if (node == NULL)
38 return get_node_uri_iter(ctx, xml_node_first_child(ctx, node),
42 return node;
50 xml_node_t *node;
56 node = get_node_uri_iter(ctx, root, search);
59 return node;
67 xml_node_t *node;
74 xml_node_for_each_child(ctx, node, root) {
75 xml_node_for_each_check(ctx, node);
76 name = xml_node_get_localname(ctx, node);
81 if (node == NULL)
84 return get_node_iter(ctx, node, end);
85 return node;
93 xml_node_t *node;
99 node = get_node_iter(ctx, root, search);
102 return node;
109 xml_node_t *node;
112 xml_node_for_each_child(ctx, node, root) {
113 xml_node_for_each_check(ctx, node);
114 match = get_node(ctx, node, path);
125 xml_node_t *node;
162 node = xml_node_from_buf(ctx, buf);
165 return node;
169 int node_to_file(struct xml_node_ctx *ctx, const char *fname, xml_node_t *node)
174 str = xml_node_to_str(ctx, node);
192 static char * get_val(struct xml_node_ctx *ctx, xml_node_t *node)
196 val = xml_node_get_text(ctx, node);
230 xml_node_t *node;
236 xml_node_for_each_child(ctx, node, in) {
237 xml_node_for_each_check(ctx, node);
238 name = xml_node_get_localname(ctx, node);
240 tnds = xml_node_create(ctx, out, NULL, "Node");
248 val = get_val(ctx, node);
255 node_to_tnds(ctx, new_uri ? out : tnds, node, new_uri);
264 xml_node_t *node;
266 node = xml_node_create(ctx, parent, NULL, "RTProperties");
267 if (node == NULL)
269 node = xml_node_create(ctx, node, NULL, "Type");
270 if (node == NULL)
272 xml_node_create_text(ctx, node, NULL, "DDFName", urn);
281 xml_node_t *node;
292 node = xml_node_create(ctx, root, NULL, "Node");
293 if (node == NULL)
295 xml_node_create_text(ctx, node, NULL, "NodeName", name);
297 add_ddfname(ctx, node, urn);
299 node_to_tnds(ctx, use_path ? root : node, mo, use_path ? name : NULL);
310 xml_node_t *node,
316 xml_node_for_each_child(ctx, child, node) {
327 static char * get_node_text(struct xml_node_ctx *ctx, xml_node_t *node,
330 node = get_first_child_node(ctx, node, node_name);
331 if (node == NULL)
333 return xml_node_get_text(ctx, node);
338 xml_node_t *node, const char *uri)
343 nodename = get_node_text(ctx, node, "NodeName");
346 value = get_node_text(ctx, node, "Value");
359 path = get_node_text(ctx, node, "Path");
385 xml_node_t *node, const char *uri)
391 xml_node_for_each_sibling(ctx, node) {
392 xml_node_for_each_check(ctx, node);
394 nodename = get_node_text(ctx, node, "NodeName");
398 name = xml_node_get_localname(ctx, node);
399 if (strcmp(name, "Node") == 0) {
406 root = add_mo_node(ctx, root, node, uri);
409 child = get_first_child_node(ctx, node, "Node");
430 xml_node_t *node;
436 node = get_first_child_node(ctx, tnds, "Node");
437 if (!node)
439 return tnds_to_mo_iter(ctx, NULL, node, NULL);
443 xml_node_t * soap_build_envelope(struct xml_node_ctx *ctx, xml_node_t *node)
454 xml_node_add_child(ctx, body, node);