Home | History | Annotate | Download | only in libxml2

Lines Matching refs:api_doc

31 static xmlDocPtr api_doc = NULL;
45 xmlFreeDoc(api_doc);
46 api_doc = NULL;
55 if (api_doc == NULL) {
56 api_doc = xmlReadMemory("<!DOCTYPE root [<!ELEMENT root EMPTY>]><root xmlns:h='http://example.com/' h:foo='bar'/>", 88, "root_test", NULL, 0);
60 return(api_doc);
67 if ((api_doc != NULL) && (api_doc->children != NULL) &&
68 (api_doc->children->type == XML_DTD_NODE))
69 api_dtd = (xmlDtdPtr) api_doc->children;
78 if ((api_doc != NULL) && (api_doc->children != NULL) &&
79 (api_doc->children->next != NULL) &&
80 (api_doc->children->next->type == XML_ELEMENT_NODE))
81 api_root = api_doc->children->next;
501 if ((val != NULL) && (val != api_doc) && (val->doc != api_doc))
778 if (val != api_doc)
795 if ((val != NULL) && (val != api_root) && (val != (xmlNodePtr) api_doc)) {
915 if ((val != NULL) && (val != api_doc) && (val->doc != api_doc))
919 if ((val != NULL) && (val != api_doc) && (val->doc != api_doc))