2011-02-13から1日間の記事一覧
xmlUnlinkNodeでノードを切り話したあと、xmlFreeで削除する。 #include <stdio.h> #include <string.h> #include <libxml/tree.h> #include <libxml/parser.h> #include <libxml/xpath.h> int del_node(xmlNodeSetPtr nodes) { int size; int i; size = (nodes) ? nodes->nodeNr : 0; for(i = 0; i < nodes->nodeNr; ++i) { xmlU</libxml/xpath.h></libxml/parser.h></libxml/tree.h></string.h></stdio.h>…