Lines Matching refs:node
29 xmlNodePtr root_node = NULL, node = NULL, node1 = NULL;/* node pointers */
37 * Creates a new document, a node and set it as a root node
49 * xmlNewChild() creates a new node, which is "attached" as child node
50 * of root_node node.
53 BAD_CAST "content of node 1");
55 * The same as above, but the new child node doesn't have a content
60 * xmlNewProp() creates attributes, which is "attached" to an node.
63 node =
65 BAD_CAST "this node has attributes");
66 xmlNewProp(node, BAD_CAST "attribute", BAD_CAST "yes");
67 xmlNewProp(node, BAD_CAST "foo", BAD_CAST "bar");
71 * creates a node and a text node separately. They are "attached"
74 node = xmlNewNode(NULL, BAD_CAST "node4");
76 "other way to create content (which is also a node)");
77 xmlAddChild(node, node1);
78 xmlAddChild(root_node, node);
84 sprintf(buff, "node%d", i);
85 node = xmlNewChild(root_node, NULL, BAD_CAST buff, NULL);
87 sprintf(buff, "node%d%d", i, j);
88 node1 = xmlNewChild(node, NULL, BAD_CAST buff, NULL);