Lines Matching refs:nodes
28 static void update_xpath_nodes(xmlNodeSetPtr nodes, const xmlChar * value);
79 * Parses input XML file, evaluates XPath expression and update the nodes
118 /* update selected nodes */
138 * @nodes: the nodes set.
141 * Prints the @nodes content to @output.
144 update_xpath_nodes(xmlNodeSetPtr nodes, const xmlChar* value) {
149 size = (nodes) ? nodes->nodeNr : 0;
152 * NOTE: the nodes are processed in reverse order, i.e. reverse document
154 * of the node and such nodes may have been selected too ! Handling
160 assert(nodes->nodeTab[i]);
162 xmlNodeSetContent(nodes->nodeTab[i], value);
165 * elements from the tree *except* namespace nodes where the XPath
174 * - make a copy of the pointers to the nodes from the result set
175 * then call xmlXPathFreeObject() and then modify the nodes
177 * - remove the reference to the modified nodes from the node set
178 * as they are processed, if they are not namespace nodes.
180 if (nodes->nodeTab[i]->type != XML_NAMESPACE_DECL)
181 nodes->nodeTab[i] = NULL;