Searched defs:doc (Results 1 - 17 of 17) sorted by relevance

/PHP_TRUNK/ext/dom/tests/
H A Ddomdocumentload_test_method.php4 $doc = new DOMDocument(); variable
8 $result = $doc->load(dirname(__FILE__) . getenv('XML_FILE'), $libxml_options);
H A Ddomdocumentload_test_method_savexml.php4 $doc = new DOMDocument(); variable
8 $result = $doc->load(dirname(__FILE__) . getenv('XML_FILE'), $libxml_options);
13 echo $doc->saveXML();
H A Ddomdocumentloadxml_test_method.php4 $doc = new DOMDocument(); variable
7 $result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')),
H A Ddomdocumentloadxml_test_method_savexml.php4 $doc = new DOMDocument(); variable
7 $result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')),
13 echo $doc->saveXML();
/PHP_TRUNK/ext/dom/
H A Dphp_dom.c133 if (node->doc == NULL) {
526 xmlNodePtr cloned_node = xmlDocCopyNode(node, node->doc, 1);
528 /* If we cloned a document then we must create new doc proxy */
529 if (cloned_node->doc == node->doc) {
532 php_libxml_increment_doc_ref((php_libxml_node_object *)clone, cloned_node->doc TSRMLS_CC);
1296 if (obj->doc != NULL) {
1300 php_libxml_increment_doc_ref((php_libxml_node_object *)intern, obj->doc TSRMLS_CC);
1317 if (parent == NULL || child == NULL || child->doc != parent->doc) {
1422 dom_set_old_ns(xmlDoc *doc, xmlNs *ns) argument
[all...]
H A Ddocumentfragment.c87 static void php_dom_xmlSetTreeDoc(xmlNodePtr tree, xmlDocPtr doc) /* {{{ */ argument
96 prop->doc = doc;
100 php_dom_xmlSetTreeDoc(cur, doc);
110 php_dom_xmlSetTreeDoc(cur, doc);
114 tree->doc = doc;
141 err = xmlParseBalancedChunkMemory(nodep->doc, NULL, NULL, 0, data, &lst);
147 php_dom_xmlSetTreeDoc(lst, nodep->doc);
H A Delement.c299 ns = xmlSearchNs(elem->doc, elem, prefix);
346 value = xmlNodeListGetString(attr->doc, attr->children, 1);
514 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *) attrp->children, attrp->name);
516 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *)"xmlns", attrp->name);
557 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) {
576 if (attrp->doc == NULL && nodep->doc != NULL) {
697 static xmlNsPtr _dom_new_reconNs(xmlDocPtr doc, xmlNodePt argument
[all...]
H A Dnode.c162 static void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep) /* {{{ */ argument
173 if((nsptr = xmlSearchNsByHref(doc, nodep->parent, curns->href)) &&
181 dom_set_old_ns(doc, curns);
189 xmlReconciliateNs(doc, nodep);
609 docp = nodep->doc;
720 nsnode = xmlDocGetRootElement(nodep->doc);
806 baseuri = xmlNodeGetBase(nodep->doc, nodep);
876 if (node->doc != nodep->doc) {
877 xmlSetTreeDoc(node, nodep->doc);
[all...]
H A Dxpath.c41 ZEND_ARG_OBJ_INFO(0, doc, DOMDocument, 0)
154 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) node->children, node->name);
156 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) "xmlns", node->name);
254 /* {{{ proto void DOMXPath::__construct(DOMDocument doc) U */
257 zval *id, *doc; local
265 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "OO", &id, dom_xpath_class_entry, &doc, dom_document_class_entry) == FAILURE) {
271 DOM_GET_OBJ(docp, doc, xmlDocPtr, docobj);
309 docp = (xmlDocPtr) ctx->doc;
380 docp = (xmlDocPtr) ctxp->doc;
394 if (nodep && docp != nodep->doc) {
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_schema.c101 xmlDocPtr doc; local
106 doc = soap_xmlParseFile((char*)location TSRMLS_CC);
109 if (doc == NULL) {
112 schema = get_node(doc->children, "schema");
114 xmlFreeDoc(doc);
120 xmlFreeDoc(doc);
124 xmlFreeDoc(doc);
134 xmlFreeDoc(doc);
138 zend_hash_str_add_ptr(&ctx->docs, (char*)location, xmlStrlen(location), doc);
197 xmlChar *base = xmlNodeGetBase(trav->doc, tra
[all...]
H A Dphp_sdl.c57 nsptr = xmlSearchNs(node->doc, node, BAD_CAST(ns));
81 nsptr = xmlSearchNs(node->doc, node, BAD_CAST(ns));
388 xmlChar *base = xmlNodeGetBase(trav->doc, trav);
391 uri = xmlBuildURI(tmp->children->content, trav->doc->URL);
3662 xmlDocPtr doc = Z_PTR_P(zv); local
3663 xmlFreeDoc(doc);
H A Dphp_encoding.c535 nsptr = xmlSearchNs(data->doc, data, BAD_CAST(ns));
603 xmlDocPtr doc = soap_xmlParseMemory(Z_STRVAL(return_value), Z_STRLEN(return_value)); local
604 if (doc && doc->children) {
605 ret = xmlDocCopyNode(doc->children, parent->doc, 1);
607 xmlFreeDoc(doc);
2504 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAST(ns));
2525 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAST(ns));
2870 nsptr = xmlSearchNs(data->doc, dat
3368 xmlSearchNsPrefixByHref(xmlDocPtr doc, xmlNodePtr node, const xmlChar * href) argument
[all...]
H A Dsoap.c3837 xmlDocPtr doc; local
3845 doc = xmlNewDoc(BAD_CAST("1.0"));
3846 doc->charset = XML_CHAR_ENCODING_UTF8;
3847 doc->encoding = xmlCharStrdup("UTF-8");
3850 envelope = xmlNewDocNode(doc, NULL, BAD_CAST("Envelope"), NULL);
3854 envelope = xmlNewDocNode(doc, NULL, BAD_CAST("Envelope"), NULL);
3860 xmlDocSetRootElement(doc, envelope);
4186 xmlFreeDoc(doc);
4189 return doc;
4194 xmlDoc *doc; local
[all...]
/PHP_TRUNK/ext/xsl/
H A Dphp_xsl.h65 php_libxml_node_object *doc; member in struct:_xsl_object
H A Dxsltprocessor.c32 ZEND_ARG_INFO(0, doc)
36 ZEND_ARG_INFO(0, doc)
40 ZEND_ARG_INFO(0, doc)
45 ZEND_ARG_INFO(0, doc)
251 dom_object *domintern = (dom_object *)intern->doc;
268 node = xmlNewDocNode(node->doc, NULL, (char *) node->children, node->name);
270 node = xmlNewDocNode(node->doc, NULL, "xmlns", node->name);
388 /* {{{ proto void xsl_xsltprocessor_import_stylesheet(domdocument doc);
395 xmlDoc *doc = NULL, *newdoc = NULL; local
410 doc
477 xmlDocPtr doc = NULL; local
[all...]
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c426 buffer = xmlEncodeEntitiesReentrant(node->doc, (xmlChar *)Z_STRVAL_P(value));
981 static inline zend_string *sxe_xmlNodeListGetString(xmlDocPtr doc, xmlNodePtr list, int inLine TSRMLS_DC) /* {{{ */ argument
983 xmlChar *tmp = xmlNodeListGetString(doc, list, inLine);
1005 contents = xmlNodeListGetString(node->doc, node->children, 1);
1113 ZVAL_STR(&value, sxe_xmlNodeListGetString(node->doc, node->children, 1 TSRMLS_CC));
1138 ZVAL_STR(&value, sxe_xmlNodeListGetString(node->doc, node, 1 TSRMLS_CC));
1663 nsptr = xmlSearchNsByHref(node->doc, node, (xmlChar *)nsuri);
1739 nsptr = xmlSearchNsByHref(node->doc, node, (xmlChar *)nsuri);
2417 if (nodep->doc == NULL) {
2432 php_libxml_increment_doc_ref((php_libxml_node_object *)sxe, nodep->doc TSRMLS_C
[all...]
/PHP_TRUNK/ext/tidy/
H A Dtidy.c186 TidyDoc doc; member in struct:_PHPTidyDoc
220 static int _php_tidy_apply_config_array(TidyDoc doc, HashTable *ht_options TSRMLS_DC);
494 static int _php_tidy_set_tidy_opt(TidyDoc doc, char *optname, zval *value TSRMLS_DC) argument
496 TidyOption opt = tidyGetOptionByName(doc, optname);
515 if (tidyOptSetValue(doc, tidyOptGetId(opt), Z_STRVAL(conv))) {
531 if (tidyOptSetInt(doc, tidyOptGetId(opt), Z_LVAL(conv))) {
541 if (tidyOptSetBool(doc, tidyOptGetId(opt), Z_LVAL(conv))) {
559 TidyDoc doc; local
578 doc = tidyCreate();
582 if (tidySetErrorBuffer(doc, errbu
989 _php_tidy_apply_config_array(TidyDoc doc, HashTable *ht_options TSRMLS_DC) argument
1145 TidyDoc doc; local
[all...]

Completed in 39 milliseconds