Lines Matching refs:doc
34 static void cleanupXmlDoc(xmlDoc *doc) { in cleanupXmlDoc() argument
35 xmlFreeDoc(doc); in cleanupXmlDoc()
39 static bool parseLocation(xmlNode *ptNode, xmlDoc *doc, GpsFix *result, in parseLocation() argument
87 if ((tmpStr = xmlNodeListGetString(doc, field->children, 1))) { in parseLocation()
111 if ((tmpStr = xmlNodeListGetString(doc, field->children, 1))) { in parseLocation()
121 if ((tmpStr = xmlNodeListGetString(doc, field->children, 1))) { in parseLocation()
127 if ((tmpStr = xmlNodeListGetString(doc, field->children, 1))) { in parseLocation()
143 static bool parse(xmlDoc *doc, GpsFixArray *fixes, string *error) { in parse() argument
144 xmlNode *root = xmlDocGetRootElement(doc); in parse()
151 isOk = parseLocation(child, doc, &location, error); in parse()
153 cleanupXmlDoc(doc); in parse()
164 isOk = parseLocation(rtept, doc, &location, error); in parse()
166 cleanupXmlDoc(doc); in parse()
183 isOk = parseLocation(trkpt, doc, &location, error); in parse()
185 cleanupXmlDoc(doc); in parse()
199 cleanupXmlDoc(doc); in parse()
205 xmlDocPtr doc = xmlReadFile(filePath, nullptr, 0); in parseFile() local
206 if (doc == nullptr) { in parseFile()
207 cleanupXmlDoc(doc); in parseFile()
211 return parse(doc, fixes, error); in parseFile()
216 xmlDocPtr doc = xmlReadMemory(str, len, NULL, NULL, 0); in parseString() local
217 if (doc == nullptr) { in parseString()
218 cleanupXmlDoc(doc); in parseString()
222 return parse(doc, fixes, error); in parseString()