Lines Matching refs:doc
9 parseStory (xmlDocPtr doc, xmlNodePtr cur, char *keyword) {
18 xmlDocPtr doc;
21 doc = xmlParseFile(docname);
23 if (doc == NULL ) {
28 cur = xmlDocGetRootElement(doc);
32 xmlFreeDoc(doc);
38 xmlFreeDoc(doc);
45 parseStory (doc, cur, keyword);
50 return(doc);
58 xmlDocPtr doc;
67 doc = parseDoc (docname, keyword);
68 if (doc != NULL) {
69 xmlSaveFormatFile (docname, doc, 0);
70 xmlFreeDoc(doc);