Lines Matching refs:root
16 xml_node_t *root, char *uri)
26 node = root;
46 xml_node_t * get_node_uri(struct xml_node_ctx *ctx, xml_node_t *root,
56 node = get_node_uri_iter(ctx, root, search);
64 xml_node_t *root, const char *path)
74 xml_node_for_each_child(ctx, node, root) {
89 xml_node_t * get_node(struct xml_node_ctx *ctx, xml_node_t *root,
99 node = get_node_iter(ctx, root, search);
106 xml_node_t * get_child_node(struct xml_node_ctx *ctx, xml_node_t *root,
112 xml_node_for_each_child(ctx, node, root) {
280 xml_node_t *root;
284 root = xml_node_create_root(ctx, ns_uri, NULL, NULL, "MgmtTree");
285 if (root == NULL)
288 xml_node_create_text(ctx, root, NULL, "VerDTD", "1.2");
292 node = xml_node_create(ctx, root, NULL, "Node");
299 node_to_tnds(ctx, use_path ? root : node, mo, use_path ? name : NULL);
301 return root;
304 xml_node_free(ctx, root);
337 static xml_node_t * add_mo_node(struct xml_node_ctx *ctx, xml_node_t *root,
348 if (root == NULL) {
349 root = xml_node_create_root(ctx, NULL, NULL, NULL,
351 if (root && value)
352 xml_node_set_text(ctx, root, value);
362 parent = get_node_uri(ctx, root, uri);
380 return root;
384 static xml_node_t * tnds_to_mo_iter(struct xml_node_ctx *ctx, xml_node_t *root,
400 if (root && !uri) {
406 root = add_mo_node(ctx, root, node, uri);
412 tnds_to_mo_iter(ctx, root, child, nodename);
416 tnds_to_mo_iter(ctx, root, child, new_uri);
423 return root;