Lines Matching refs:docp
245 xmlDoc *docp; in dom_document_doctype_read() local
249 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_doctype_read()
251 if (docp == NULL) { in dom_document_doctype_read()
258 dtdptr = xmlGetIntSubset(docp); in dom_document_doctype_read()
295 xmlDoc *docp; in dom_document_document_element_read() local
299 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_document_element_read()
301 if (docp == NULL) { in dom_document_document_element_read()
308 root = xmlDocGetRootElement(docp); in dom_document_document_element_read()
329 xmlDoc *docp; in dom_document_encoding_read() local
332 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_encoding_read()
334 if (docp == NULL) { in dom_document_encoding_read()
339 encoding = (char *) docp->encoding; in dom_document_encoding_read()
354 xmlDoc *docp; in dom_document_encoding_write() local
357 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_encoding_write()
359 if (docp == NULL) { in dom_document_encoding_write()
377 if (docp->encoding != NULL) { in dom_document_encoding_write()
378 xmlFree((xmlChar *)docp->encoding); in dom_document_encoding_write()
380 docp->encoding = xmlStrdup((const xmlChar *) Z_STRVAL_P(newval)); in dom_document_encoding_write()
401 xmlDoc *docp; in dom_document_standalone_read() local
404 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_standalone_read()
406 if (docp == NULL) { in dom_document_standalone_read()
412 standalone = docp->standalone; in dom_document_standalone_read()
421 xmlDoc *docp; in dom_document_standalone_write() local
424 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_standalone_write()
426 if (docp == NULL) { in dom_document_standalone_write()
440 docp->standalone = 1; in dom_document_standalone_write()
443 docp->standalone = -1; in dom_document_standalone_write()
446 docp->standalone = 0; in dom_document_standalone_write()
465 xmlDoc *docp; in dom_document_version_read() local
468 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_version_read()
470 if (docp == NULL) { in dom_document_version_read()
475 version = (char *) docp->version; in dom_document_version_read()
490 xmlDoc *docp; in dom_document_version_write() local
492 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_version_write()
494 if (docp == NULL) { in dom_document_version_write()
499 if (docp->version != NULL) { in dom_document_version_write()
500 xmlFree((xmlChar *) docp->version ); in dom_document_version_write()
512 docp->version = xmlStrdup((const xmlChar *) Z_STRVAL_P(newval)); in dom_document_version_write()
827 xmlDoc *docp; in dom_document_document_uri_read() local
830 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_document_uri_read()
832 if (docp == NULL) { in dom_document_document_uri_read()
838 url = (char *) docp->URL; in dom_document_document_uri_read()
851 xmlDoc *docp; in dom_document_document_uri_write() local
853 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_document_uri_write()
855 if (docp == NULL) { in dom_document_document_uri_write()
860 if (docp->URL != NULL) { in dom_document_document_uri_write()
861 xmlFree((xmlChar *) docp->URL); in dom_document_document_uri_write()
873 docp->URL = xmlStrdup((const xmlChar *) Z_STRVAL_P(newval)); in dom_document_document_uri_write()
906 xmlDocPtr docp; in PHP_FUNCTION() local
915 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
922 node = xmlNewDocNode(docp, NULL, name, value); in PHP_FUNCTION()
939 xmlDocPtr docp; in PHP_FUNCTION() local
947 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
949 node = xmlNewDocFragment(docp); in PHP_FUNCTION()
966 xmlDocPtr docp; in PHP_FUNCTION() local
975 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
977 node = xmlNewDocText(docp, (xmlChar *) value); in PHP_FUNCTION()
994 xmlDocPtr docp; in PHP_FUNCTION() local
1003 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1005 node = xmlNewDocComment(docp, (xmlChar *) value); in PHP_FUNCTION()
1022 xmlDocPtr docp; in PHP_FUNCTION() local
1031 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1033 node = xmlNewCDataBlock(docp, (xmlChar *) value, value_len); in PHP_FUNCTION()
1050 xmlDocPtr docp; in PHP_FUNCTION() local
1059 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1071 node->doc = docp; in PHP_FUNCTION()
1085 xmlDocPtr docp; in PHP_FUNCTION() local
1094 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1101 node = xmlNewDocProp(docp, (xmlChar *) name, NULL); in PHP_FUNCTION()
1119 xmlDocPtr docp = NULL; in PHP_FUNCTION() local
1128 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1135 node = xmlNewReference(docp, name); in PHP_FUNCTION()
1151 xmlDocPtr docp; in PHP_FUNCTION() local
1161 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1177 xmlDocPtr docp; in PHP_FUNCTION() local
1187 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1197 if (nodep->doc == docp) { in PHP_FUNCTION()
1203 retnodep = xmlDocCopyNode(nodep, docp, recursive); in PHP_FUNCTION()
1210 xmlNodePtr root = xmlDocGetRootElement(docp); in PHP_FUNCTION()
1232 xmlDocPtr docp; in PHP_FUNCTION() local
1245 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1251 nodep = xmlNewDocNode (docp, NULL, localname, value); in PHP_FUNCTION()
1295 xmlDocPtr docp; in PHP_FUNCTION() local
1308 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1310 root = xmlDocGetRootElement(docp); in PHP_FUNCTION()
1315 nodep = (xmlNodePtr) xmlNewDocProp(docp, localname, NULL); in PHP_FUNCTION()
1360 xmlDocPtr docp; in PHP_FUNCTION() local
1370 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1387 xmlDocPtr docp; in PHP_FUNCTION() local
1397 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1399 attrp = xmlGetID(docp, (xmlChar *) idname); in PHP_FUNCTION()
1427 xmlDocPtr docp; in PHP_FUNCTION() local
1434 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1436 dom_normalize((xmlNodePtr) docp TSRMLS_CC); in PHP_FUNCTION()
1455 xmlDoc *docp = NULL, *olddoc; in PHP_METHOD() local
1468 docp = xmlNewDoc(version); in PHP_METHOD()
1470 if (!docp) { in PHP_METHOD()
1476 docp->encoding = (const xmlChar*)xmlStrdup(encoding); in PHP_METHOD()
1490 if (php_libxml_increment_doc_ref((php_libxml_node_object *)intern, docp TSRMLS_CC) == -1) { in PHP_METHOD()
1493 …php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)docp, (void *)intern T… in PHP_METHOD()
1675 xmlDoc *docp = NULL, *newdoc; in dom_parse_document() local
1704 docp = (xmlDocPtr) dom_object_get_node(intern); in dom_parse_document()
1706 if (docp != NULL) { in dom_parse_document()
1712 docp->_private = NULL; in dom_parse_document()
1757 xmlDoc *docp; in PHP_FUNCTION() local
1773 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1783 bytes = xmlSaveFormatFileEnc(file, docp, NULL, format); in PHP_FUNCTION()
1801 xmlDoc *docp; in PHP_FUNCTION() local
1814 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1822 if (node->doc != docp) { in PHP_FUNCTION()
1835 xmlNodeDump(buf, docp, node, 0, format); in PHP_FUNCTION()
1852 xmlDocDumpFormatMemory(docp, &mem, &size, format); in PHP_FUNCTION()
1911 xmlDoc *docp; in PHP_FUNCTION() local
1921 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1923 err = xmlXIncludeProcessFlags(docp, flags); in PHP_FUNCTION()
1929 root = (xmlNodePtr) docp->children; in PHP_FUNCTION()
1952 xmlDoc *docp; in PHP_FUNCTION() local
1960 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1968 if (xmlValidateDocument(cvp, docp)) { in PHP_FUNCTION()
1983 xmlDoc *docp; in _dom_document_schema_validate() local
2003 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in _dom_document_schema_validate()
2038 docp = (xmlDocPtr) dom_object_get_node(intern); in _dom_document_schema_validate()
2055 is_valid = xmlSchemaValidateDoc(vptr, docp); in _dom_document_schema_validate()
2084 xmlDoc *docp; in _dom_document_relaxNG_validate() local
2103 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in _dom_document_relaxNG_validate()
2138 docp = (xmlDocPtr) dom_object_get_node(intern); in _dom_document_relaxNG_validate()
2148 is_valid = xmlRelaxNGValidateDoc(vptr, docp); in _dom_document_relaxNG_validate()
2181 xmlDoc *docp = NULL, *newdoc; in dom_load_html() local
2235 docp = (xmlDocPtr) dom_object_get_node(intern); in dom_load_html()
2237 if (docp != NULL) { in dom_load_html()
2243 docp->_private = NULL; in dom_load_html()
2286 xmlDoc *docp; in PHP_FUNCTION() local
2302 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
2305 encoding = (const char *) htmlGetMetaEncoding(docp); in PHP_FUNCTION()
2309 bytes = htmlSaveFileFormat(file, docp, encoding, format); in PHP_FUNCTION()
2324 xmlDoc *docp; in PHP_FUNCTION() local
2338 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
2346 if (node->doc != docp) { in PHP_FUNCTION()
2361 one_size = htmlNodeDump(buf, docp, node); in PHP_FUNCTION()
2371 size = htmlNodeDump(buf, docp, node); in PHP_FUNCTION()
2387 htmlDocDumpMemoryFormat(docp, &mem, &size, format); in PHP_FUNCTION()
2389 htmlDocDumpMemory(docp, &mem, &size); in PHP_FUNCTION()
2410 xmlDoc *docp; in PHP_METHOD() local
2444 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()