Lines Matching defs:doc
46 parsePerson(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) {
66 ret->name = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
69 ret->email = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
109 parseJob(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) {
137 xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
141 xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
144 ret->contact = parsePerson(doc, ns, cur);
181 xmlDocPtr doc;
191 doc = xmlParseFile(filename);
192 if (doc == NULL) return(NULL);
204 cur = xmlDocGetRootElement(doc);
207 xmlFreeDoc(doc);
210 ns = xmlSearchNsByHref(doc, cur,
215 xmlFreeDoc(doc);
220 xmlFreeDoc(doc);
230 xmlFreeDoc(doc);
244 xmlFreeDoc(doc);
253 xmlDocDump ( stderr, doc );
256 xmlFreeDoc(doc);
266 curjob = parseJob(doc, ns, cur);