From 329a504b1a2b8138fa7dd16611e69d957bb96255 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Thu, 26 Feb 2026 16:01:56 +0100 Subject: [PATCH 1/2] Remove obsolete DOM function-style documentation These 85 files use the old function-style format (dom/functions/). The EN documentation has been restructured to use the OOP class format, making these translations orphaned. Source: https://doc.php.net/revcheck.php?p=oldfiles&lang=it --- .../dom/functions/dom-domattr-construct.xml | 99 -- reference/dom/functions/dom-domattr-isid.xml | 82 - .../dom-domcharacterdata-appenddata.xml | 76 - .../dom-domcharacterdata-deletedata.xml | 105 -- .../dom-domcharacterdata-insertdata.xml | 101 -- .../dom-domcharacterdata-replacedata.xml | 114 -- .../dom-domcharacterdata-substringdata.xml | 104 -- .../functions/dom-domcomment-construct.xml | 90 -- .../functions/dom-domdocument-construct.xml | 95 -- .../dom-domdocument-createattribute.xml | 96 -- .../dom-domdocument-createattributens.xml | 117 -- .../dom-domdocument-createcdatasection.xml | 81 - .../dom-domdocument-createcomment.xml | 81 - ...dom-domdocument-createdocumentfragment.xml | 65 - .../dom-domdocument-createelement.xml | 137 -- .../dom-domdocument-createelementns.xml | 156 -- .../dom-domdocument-createentityreference.xml | 98 -- ...omdocument-createprocessinginstruction.xml | 105 -- .../dom-domdocument-createtextnode.xml | 81 - .../dom-domdocument-getelementbyid.xml | 107 -- .../dom-domdocument-getelementsbytagname.xml | 75 - ...dom-domdocument-getelementsbytagnamens.xml | 132 -- .../functions/dom-domdocument-importnode.xml | 80 - .../dom/functions/dom-domdocument-load.xml | 101 -- .../functions/dom-domdocument-loadhtml.xml | 100 -- .../dom-domdocument-loadhtmlfile.xml | 103 -- .../dom/functions/dom-domdocument-loadxml.xml | 101 -- .../functions/dom-domdocument-normalize.xml | 58 - .../dom-domdocument-relaxngvalidate.xml | 77 - .../dom-domdocument-relaxngvalidatesource.xml | 77 - .../dom/functions/dom-domdocument-save.xml | 106 -- .../functions/dom-domdocument-saveHTML.xml | 94 -- .../dom-domdocument-saveHTMLFile.xml | 109 -- .../dom/functions/dom-domdocument-saveXML.xml | 139 -- .../dom-domdocument-schemaValidate.xml | 76 - .../dom-domdocument-schemaValidateSource.xml | 76 - .../functions/dom-domdocument-validate.xml | 97 -- .../functions/dom-domdocument-xinclude.xml | 145 -- .../functions/dom-domelement-construct.xml | 113 -- .../functions/dom-domelement-getattribute.xml | 75 - .../dom-domelement-getattributenode.xml | 74 - .../dom-domelement-getattributenodens.xml | 85 - .../dom-domelement-getattributens.xml | 85 - .../dom-domelement-getelementsbytagname.xml | 76 - .../dom-domelement-getelementsbytagnamens.xml | 84 - .../functions/dom-domelement-hasattribute.xml | 75 - .../dom-domelement-hasattributens.xml | 86 - .../dom-domelement-removeattribute.xml | 88 -- .../dom-domelement-removeattributenode.xml | 96 -- .../dom-domelement-removeattributens.xml | 98 -- .../functions/dom-domelement-setattribute.xml | 116 -- .../dom-domelement-setattributenode.xml | 88 -- .../dom-domelement-setattributenodens.xml | 88 -- .../dom-domelement-setattributens.xml | 118 -- .../dom-domentityreference-construct.xml | 87 - .../dom-domimplementation-construct.xml | 44 - .../dom-domimplementation-createdocument.xml | 121 -- ...m-domimplementation-createdocumenttype.xml | 155 -- .../dom-domimplementation-hasfeature.xml | 128 -- .../dom-domnamednodemap-getnameditem.xml | 74 - .../dom-domnamednodemap-getnameditemns.xml | 84 - .../functions/dom-domnamednodemap-item.xml | 66 - .../dom/functions/dom-domnode-appendchild.xml | 135 -- .../dom/functions/dom-domnode-clonenode.xml | 66 - .../functions/dom-domnode-hasattributes.xml | 59 - .../functions/dom-domnode-haschildnodes.xml | 58 - .../functions/dom-domnode-insertbefore.xml | 120 -- .../dom/functions/dom-domnode-issamenode.xml | 66 - .../dom/functions/dom-domnode-issupported.xml | 85 - .../dom-domnode-lookupnamespaceuri.xml | 74 - .../functions/dom-domnode-lookupprefix.xml | 73 - .../dom/functions/dom-domnode-normalize.xml | 58 - .../dom/functions/dom-domnode-removechild.xml | 134 -- .../functions/dom-domnode-replacechild.xml | 131 -- .../dom/functions/dom-domnodelist-item.xml | 134 -- ...dom-domprocessinginstruction-construct.xml | 102 -- .../dom/functions/dom-domtext-construct.xml | 87 - ...m-domtext-iswhitespaceinelementcontent.xml | 52 - .../dom/functions/dom-domtext-splittext.xml | 74 - .../dom/functions/dom-domxpath-construct.xml | 60 - .../dom/functions/dom-domxpath-evaluate.xml | 121 -- .../dom/functions/dom-domxpath-query.xml | 155 -- .../dom-domxpath-registernamespace.xml | 75 - .../dom/functions/dom-import-simplexml.xml | 107 -- reference/dom/reference.xml | 1402 ----------------- 85 files changed, 9368 deletions(-) delete mode 100644 reference/dom/functions/dom-domattr-construct.xml delete mode 100644 reference/dom/functions/dom-domattr-isid.xml delete mode 100644 reference/dom/functions/dom-domcharacterdata-appenddata.xml delete mode 100644 reference/dom/functions/dom-domcharacterdata-deletedata.xml delete mode 100644 reference/dom/functions/dom-domcharacterdata-insertdata.xml delete mode 100644 reference/dom/functions/dom-domcharacterdata-replacedata.xml delete mode 100644 reference/dom/functions/dom-domcharacterdata-substringdata.xml delete mode 100644 reference/dom/functions/dom-domcomment-construct.xml delete mode 100644 reference/dom/functions/dom-domdocument-construct.xml delete mode 100644 reference/dom/functions/dom-domdocument-createattribute.xml delete mode 100644 reference/dom/functions/dom-domdocument-createattributens.xml delete mode 100644 reference/dom/functions/dom-domdocument-createcdatasection.xml delete mode 100644 reference/dom/functions/dom-domdocument-createcomment.xml delete mode 100644 reference/dom/functions/dom-domdocument-createdocumentfragment.xml delete mode 100644 reference/dom/functions/dom-domdocument-createelement.xml delete mode 100644 reference/dom/functions/dom-domdocument-createelementns.xml delete mode 100644 reference/dom/functions/dom-domdocument-createentityreference.xml delete mode 100644 reference/dom/functions/dom-domdocument-createprocessinginstruction.xml delete mode 100644 reference/dom/functions/dom-domdocument-createtextnode.xml delete mode 100644 reference/dom/functions/dom-domdocument-getelementbyid.xml delete mode 100644 reference/dom/functions/dom-domdocument-getelementsbytagname.xml delete mode 100644 reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml delete mode 100644 reference/dom/functions/dom-domdocument-importnode.xml delete mode 100644 reference/dom/functions/dom-domdocument-load.xml delete mode 100644 reference/dom/functions/dom-domdocument-loadhtml.xml delete mode 100644 reference/dom/functions/dom-domdocument-loadhtmlfile.xml delete mode 100644 reference/dom/functions/dom-domdocument-loadxml.xml delete mode 100644 reference/dom/functions/dom-domdocument-normalize.xml delete mode 100644 reference/dom/functions/dom-domdocument-relaxngvalidate.xml delete mode 100644 reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml delete mode 100644 reference/dom/functions/dom-domdocument-save.xml delete mode 100644 reference/dom/functions/dom-domdocument-saveHTML.xml delete mode 100644 reference/dom/functions/dom-domdocument-saveHTMLFile.xml delete mode 100644 reference/dom/functions/dom-domdocument-saveXML.xml delete mode 100644 reference/dom/functions/dom-domdocument-schemaValidate.xml delete mode 100644 reference/dom/functions/dom-domdocument-schemaValidateSource.xml delete mode 100644 reference/dom/functions/dom-domdocument-validate.xml delete mode 100644 reference/dom/functions/dom-domdocument-xinclude.xml delete mode 100644 reference/dom/functions/dom-domelement-construct.xml delete mode 100644 reference/dom/functions/dom-domelement-getattribute.xml delete mode 100644 reference/dom/functions/dom-domelement-getattributenode.xml delete mode 100644 reference/dom/functions/dom-domelement-getattributenodens.xml delete mode 100644 reference/dom/functions/dom-domelement-getattributens.xml delete mode 100644 reference/dom/functions/dom-domelement-getelementsbytagname.xml delete mode 100644 reference/dom/functions/dom-domelement-getelementsbytagnamens.xml delete mode 100644 reference/dom/functions/dom-domelement-hasattribute.xml delete mode 100644 reference/dom/functions/dom-domelement-hasattributens.xml delete mode 100644 reference/dom/functions/dom-domelement-removeattribute.xml delete mode 100644 reference/dom/functions/dom-domelement-removeattributenode.xml delete mode 100644 reference/dom/functions/dom-domelement-removeattributens.xml delete mode 100644 reference/dom/functions/dom-domelement-setattribute.xml delete mode 100644 reference/dom/functions/dom-domelement-setattributenode.xml delete mode 100644 reference/dom/functions/dom-domelement-setattributenodens.xml delete mode 100644 reference/dom/functions/dom-domelement-setattributens.xml delete mode 100644 reference/dom/functions/dom-domentityreference-construct.xml delete mode 100644 reference/dom/functions/dom-domimplementation-construct.xml delete mode 100644 reference/dom/functions/dom-domimplementation-createdocument.xml delete mode 100644 reference/dom/functions/dom-domimplementation-createdocumenttype.xml delete mode 100644 reference/dom/functions/dom-domimplementation-hasfeature.xml delete mode 100644 reference/dom/functions/dom-domnamednodemap-getnameditem.xml delete mode 100644 reference/dom/functions/dom-domnamednodemap-getnameditemns.xml delete mode 100644 reference/dom/functions/dom-domnamednodemap-item.xml delete mode 100644 reference/dom/functions/dom-domnode-appendchild.xml delete mode 100644 reference/dom/functions/dom-domnode-clonenode.xml delete mode 100644 reference/dom/functions/dom-domnode-hasattributes.xml delete mode 100644 reference/dom/functions/dom-domnode-haschildnodes.xml delete mode 100644 reference/dom/functions/dom-domnode-insertbefore.xml delete mode 100644 reference/dom/functions/dom-domnode-issamenode.xml delete mode 100644 reference/dom/functions/dom-domnode-issupported.xml delete mode 100644 reference/dom/functions/dom-domnode-lookupnamespaceuri.xml delete mode 100644 reference/dom/functions/dom-domnode-lookupprefix.xml delete mode 100644 reference/dom/functions/dom-domnode-normalize.xml delete mode 100644 reference/dom/functions/dom-domnode-removechild.xml delete mode 100644 reference/dom/functions/dom-domnode-replacechild.xml delete mode 100644 reference/dom/functions/dom-domnodelist-item.xml delete mode 100644 reference/dom/functions/dom-domprocessinginstruction-construct.xml delete mode 100644 reference/dom/functions/dom-domtext-construct.xml delete mode 100644 reference/dom/functions/dom-domtext-iswhitespaceinelementcontent.xml delete mode 100644 reference/dom/functions/dom-domtext-splittext.xml delete mode 100644 reference/dom/functions/dom-domxpath-construct.xml delete mode 100644 reference/dom/functions/dom-domxpath-evaluate.xml delete mode 100644 reference/dom/functions/dom-domxpath-query.xml delete mode 100644 reference/dom/functions/dom-domxpath-registernamespace.xml delete mode 100644 reference/dom/functions/dom-import-simplexml.xml delete mode 100644 reference/dom/reference.xml diff --git a/reference/dom/functions/dom-domattr-construct.xml b/reference/dom/functions/dom-domattr-construct.xml deleted file mode 100644 index 27a776660..000000000 --- a/reference/dom/functions/dom-domattr-construct.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - DOMAttr->__construct() - - Crea un nuovo oggetto DOMAttr - - - - &reftitle.description; - - DOMAttr - - __construct - stringname - stringvalue - - - - Crea un nuovo oggetto DOMAttr. Questo oggetto è in sola lettura. - Può essere aggiunto al documento, ma non vi possono essere aggiunti nodi fino a quando - . - - - - &reftitle.parameters; - - - - name - - - Nome tag dell'attributo- - The tag name of the attribute. - - - - - value - - - Valore dell'attributo. - - - - - - - - &reftitle.examples; - - - Esempio di creazione di un nuovo DOMAttr - -appendChild(new DOMElement('root')); -$attr = $element->setAttributeNode(new DOMAttr('attr', 'attrvalue')); -echo $dom->saveXML(); /* */ - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domattr-isid.xml b/reference/dom/functions/dom-domattr-isid.xml deleted file mode 100644 index f1a992480..000000000 --- a/reference/dom/functions/dom-domattr-isid.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - DOMAttr->isId() - - Verifica se l'attributo è un ID definito - - - - &reftitle.description; - - DOMAttr - - boolisId - - - - - Questa funzione verifica se l'attributo sia un ID definito. - - - In base allo standard DOM, questa funzione riochiede la presenza di una DTD che definisca - l'attributo ID di tipo ID. Occorre validare il documento con - - oppure DOMDocument::validateOnParse prima di utilizzare questa funzione. - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.examples; - - - DOMAttr->isId() Example - -validateOnParse = true; -$doc->Load('book.xml'); - -// Recuperiamo l'attributo chianat id del capitolo documento -$attr = $doc->getElementsByTagName('chapter')->item(0)->getAttributeNode('id'); - -var_dump($attr->isId()); // bool(true) - -?> -]]> - - - - - - - diff --git a/reference/dom/functions/dom-domcharacterdata-appenddata.xml b/reference/dom/functions/dom-domcharacterdata-appenddata.xml deleted file mode 100644 index b09cd57b4..000000000 --- a/reference/dom/functions/dom-domcharacterdata-appenddata.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - DOMCharacterData->appendData() - - Aggiunge una stringa alla fine del testo di un nodo - - - - &reftitle.description; - - DOMCharacterData - - voidappendData - stringdata - - - - Aggiunge la stringa data alla fine dei dati del nodo. - - - - &reftitle.parameters; - - - - data - - - La stringa da aggiungere. - - - - - - - - &reftitle.returnvalues; - - &return.void; - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domcharacterdata-deletedata.xml b/reference/dom/functions/dom-domcharacterdata-deletedata.xml deleted file mode 100644 index 218b8301b..000000000 --- a/reference/dom/functions/dom-domcharacterdata-deletedata.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - DOMCharacterData->deleteData() - - Rimuove un range di caratteri da un nodo - - - - &reftitle.description; - - DOMCharacterData - - voiddeleteData - intoffset - intcount - - - - Rimuove un numero di caratteri pari a count a partire dalla posizione - offset. - - - - &reftitle.parameters; - - - - offset - - - Offset da cui partire a rimuovere. - - - - - count - - - Il numero di caratteri da rimuovere. Se la somma di - offset e count eccede la - lunghezza del testo, saranno cancellati tutti i caratteri fino alla fine. - - - - - - - - &reftitle.returnvalues; - - &return.void; - - - - &reftitle.exceptions; - - - - DOM_INDEX_SIZE_ERR - - - Eccezione generata se offset è negativo oppure più grande di un - numero di 16 bit, oppure se count è - negativo. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domcharacterdata-insertdata.xml b/reference/dom/functions/dom-domcharacterdata-insertdata.xml deleted file mode 100644 index a6ba713f8..000000000 --- a/reference/dom/functions/dom-domcharacterdata-insertdata.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - DOMCharacterData->insertData() - - Inserisce una stringa all'offset di 16 bit indicato - - - - &reftitle.description; - - DOMCharacterData - - voidinsertData - intoffset - stringdata - - - - Inserisce la stringa data alla posizione offset. - - - - &reftitle.parameters; - - - - offset - - - L'offset del carattere da cui cominciare ad inserire. - - - - - data - - - La stringa da inserire. - - - - - - - - &reftitle.returnvalues; - - &return.void; - - - - &reftitle.exceptions; - - - - DOM_INDEX_SIZE_ERR - - - Generato se offset è negativo o se è maggiore di un - numero di 16 bit. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domcharacterdata-replacedata.xml b/reference/dom/functions/dom-domcharacterdata-replacedata.xml deleted file mode 100644 index de00fd6d3..000000000 --- a/reference/dom/functions/dom-domcharacterdata-replacedata.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - DOMCharacterData->replaceData() - - Sostituisce una stringa all'interno di un nodo DOMCharacterData - - - - &reftitle.description; - - DOMCharacterData - - voidreplaceData - intoffset - intcount - stringdata - - - - Sostituisce count caratteri a partire dalla posizione - offset con data. - - - - &reftitle.parameters; - - - - offset - - - Offset da cui iniziare la sostituzione. - - - - - count - - - Numero di caratteri da sostituire. Se la somma di - offset e count eccede - la lunghezza, allora saranno sostituiti tutti i caratteri fino alla fine. - - - - - data - - - La stringa con cui sostituire i caratteri del range indicato. - - - - - - - - &reftitle.returnvalues; - - &return.void; - - - - &reftitle.exceptions; - - - - DOM_INDEX_SIZE_ERR - - - Generato se offset è negativo o maggiore di un - numero di 16 bit, oppure se count è - negativo. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domcharacterdata-substringdata.xml b/reference/dom/functions/dom-domcharacterdata-substringdata.xml deleted file mode 100644 index 20ba36b89..000000000 --- a/reference/dom/functions/dom-domcharacterdata-substringdata.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - DOMCharacterData->substringData() - - Estrae un tange di dati da un nodo - - - - &reftitle.description; - - DOMCharacterData - - stringsubstringData - intoffset - intcount - - - - Restituisce la stringa richiesta. - - - - &reftitle.parameters; - - - - offset - - - Offset di partenza della stringa richiesta. - - - - - count - - - Numero di caratteri da estrarre. - - - - - - - - &reftitle.returnvalues; - - La stringa richiesta. Se la somma di offset - e count supera in lunghezza i dati del nodo, considerati tutti a 16 bit, - viengono restituiti tutti i dati fino alla fine. - - - - &reftitle.exceptions; - - - - DOM_INDEX_SIZE_ERR - - - Generato se offset è negativo o maggiore di un - numero di 16 bit, oppure se count è - negativo. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domcomment-construct.xml b/reference/dom/functions/dom-domcomment-construct.xml deleted file mode 100644 index cac2ac722..000000000 --- a/reference/dom/functions/dom-domcomment-construct.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - DOMComment->__construct() - - Crea un nuovo oggetto DOMComment - - - - &reftitle.description; - - DOMComment - - __construct - stringvalue - - - - Crea un nuovo oggetto DOMComment. Questo oggetto è in sola lettura. - Può essere aggiunto ad un documento, ma non si possono inserire nodi aggiuntivi a questo nodo sino - a quando il nodo è associato al docuemnto. Per creare un modo modificabile utilizzare - . - - - - &reftitle.parameters; - - - - value - - - Il testo del commento. - - - - - - - - &reftitle.examples; - - - Esempio di creazione di un nuovo DOMComment - -appendChild(new DOMElement('root')); -$comment = $element->appendChild(new DOMComment('root comment')); -echo $dom->saveXML(); /* */ - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-construct.xml b/reference/dom/functions/dom-domdocument-construct.xml deleted file mode 100644 index 18ea9f820..000000000 --- a/reference/dom/functions/dom-domdocument-construct.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - DOMDocument->__construct() - - Crea un nuovo oggetto DOMDocument - - - - &reftitle.description; - - DOMDocument - - __construct - stringversion - stringencoding - - - - Crea un nuovo oggetto DOMDocument. - - - - &reftitle.parameters; - - - - version - - - Numero di versione del documento come parte della dichiarazione XML. - - - - - encoding - - - Codifica del docuemnto utilizzata nella dichisrazione XML. - - - - - - - - &reftitle.examples; - - - Esempio di creazione di un nuovo DOMDocument - -saveXML(); /* */ - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createattribute.xml b/reference/dom/functions/dom-domdocument-createattribute.xml deleted file mode 100644 index a2e57f522..000000000 --- a/reference/dom/functions/dom-domdocument-createattribute.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - DOMDocument->createAttribute() - Crea un nuovo attributo - - - &reftitle.description; - - DOMDocument - - DOMAttrcreateAttribute - stringname - - - - Questa funzione crea una nuova istanza della classe DOMAttr. - &dom.node.inserted; - - - - &reftitle.parameters; - - - - name - - - Nome dell'attributo. - - - - - - - - &reftitle.returnvalues; - - La nuova istanza di DOMAttr oppure &false; se si verifica un errore. - - - - &reftitle.exceptions; - - - - DOM_INVALID_CHARACTER_ERR - - - Generato se name contiene caratteri non validi. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createattributens.xml b/reference/dom/functions/dom-domdocument-createattributens.xml deleted file mode 100644 index 09f079d15..000000000 --- a/reference/dom/functions/dom-domdocument-createattributens.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - DOMDocument->createAttributeNS() - - Crea un nuovo nodo attributo con associato lo spazio dei nomi - - - - &reftitle.description; - - DOMDocument - - DOMAttrcreateAttributeNS - stringnamespaceURI - stringqualifiedName - - - - Questa funzione crea una nuova istanza della classe - DOMAttr. &dom.node.inserted; - - - - &reftitle.parameters; - - - - namespaceURI - - - L' URI dello spazio dei nomi. - - - - - qualifiedName - - - Il nome del tag e prefisso dell'attributo nella struttura prefix:tagname. - - - - - - - - &reftitle.returnvalues; - - La nuova istanza di DOMAttr oppure &false; se si verifica un errore. - - - - &reftitle.exceptions; - - - - DOM_INVALID_CHARACTER_ERR - - - Generato se qualifiedName contiene carattei non validi. - - - - - DOM_NAMESPACE_ERR - - - Generato se qualifiedName se è un nome malformato, - oppure se qualifiedName ha un prefisso e - namespaceURI vale &null;. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createcdatasection.xml b/reference/dom/functions/dom-domdocument-createcdatasection.xml deleted file mode 100644 index facc2a27d..000000000 --- a/reference/dom/functions/dom-domdocument-createcdatasection.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - DOMDocument->createCDATASection() - Crea un nuovo nodo cdata - - - &reftitle.description; - - DOMDocument - - DOMCDATASectioncreateCDATASection - stringdata - - - - Questa funzione crea una nuova istanza della classe - DOMCDATASection. &dom.node.inserted; - - - - &reftitle.parameters; - - - - data - - - Contenuto del nodo cdata. - - - - - - - - &reftitle.returnvalues; - - Una nuova istanza di DOMCDATASection oppure &false; in caso di errore. - - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createcomment.xml b/reference/dom/functions/dom-domdocument-createcomment.xml deleted file mode 100644 index 7ea586b4e..000000000 --- a/reference/dom/functions/dom-domdocument-createcomment.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - DOMDocument->createComment() - Crea un nuovo nodo di commento - - - &reftitle.description; - - DOMDocument - - DOMCommentcreateComment - stringdata - - - - Questa funzione crea una nuova istanza della classe - DOMComment. &dom.node.inserted; - - - - &reftitle.parameters; - - - - data - - - Il contenuto del commento. - - - - - - - - &reftitle.returnvalues; - - Una istanza di DOMComment oppure &false; in caso di errore. - - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createdocumentfragment.xml b/reference/dom/functions/dom-domdocument-createdocumentfragment.xml deleted file mode 100644 index 501408c44..000000000 --- a/reference/dom/functions/dom-domdocument-createdocumentfragment.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - DOMDocument->createDocumentFragment() - Crea un nuovo frammento di documento - - - &reftitle.description; - - DOMDocument - - DOMDocumentFragmentcreateDocumentFragment - - - - - Questa funzione crea una nuova istanza della classe - DOMDocumentFragment. &dom.node.inserted; - - - - &reftitle.returnvalues; - - L'istanza DOMDocumentFragment oppure &false; in caso di errore. - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createelement.xml b/reference/dom/functions/dom-domdocument-createelement.xml deleted file mode 100644 index e6c793e92..000000000 --- a/reference/dom/functions/dom-domdocument-createelement.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - - - DOMDocument->createElement() - Crea un nuovo nodo elemento - - - &reftitle.description; - - DOMDocument - - DOMElementcreateElement - stringname - stringvalue - - - - Questa funzione crea una nuova istanza della classe - DOMElement. &dom.node.inserted; - - - - &reftitle.parameters; - - - - name - - - Il nome del tag dell'elemento. - - - - - value - - - Il valore dell'elemento. Per default si crea un elemento vuoto. - Il valore può essere impostato in un secondo momento tramite DOMElement->nodeValue. - - - - - - - - &reftitle.returnvalues; - - Restituisce una nuova istanza della classe DOMElement - oppure &false; in caso di errore. - - - - &reftitle.exceptions; - - - - DOM_INVALID_CHARACTER_ERR - - - Generato se name contiene caratteri invalidi. - - - - - - - - &reftitle.examples; - - - Esempio di creazione di un nuovo elemento ed inserimento nel documento come root - -createElement('test', 'This is the root element!'); - -// inserimento dell'elemento come root (figlio del nodo documento) -$dom->appendChild($element); - -echo $dom->saveXML(); -?> -]]> - - &example.outputs; - - -This is the root element! -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createelementns.xml b/reference/dom/functions/dom-domdocument-createelementns.xml deleted file mode 100644 index 8fec8a0f2..000000000 --- a/reference/dom/functions/dom-domdocument-createelementns.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - - DOMDocument->createElementNS() - - Crea un nuovo nodo elemento con associato lo spazio dei nomi - - - - &reftitle.description; - - DOMDocument - - DOMElementcreateElementNS - stringnamespaceURI - stringqualifiedName - stringvalue - - - - Questa funzione crea un nuovo nodo elemento con associato lo spazio dei nomi. - &dom.node.inserted; - - - - &reftitle.parameters; - - - - namespaceURI - - - L' URI dello spazio dei nomi. - - - - - qualifiedName - - - Un nuome qualificato pe l'elemento del tipo prefix:tagname. - - - - - value - - - Il valore dell'elemento. Per default si crea un elemento vuoto. - Il valore può essere impostato in un secondo momento tramite DOMElement->nodeValue. - - - - - - - - &reftitle.returnvalues; - - L'istanza DOMElement oppure &false; in caso di errore. - - - - &reftitle.exceptions; - - - - DOM_INVALID_CHARACTER_ERR - - - Generato se qualifiedName contiene caratteri non validi. - - - - - DOM_NAMESPACE_ERR - - - Generato se qualifiedName se è un nome qualificato - invalido. - - - - - - - - &reftitle.examples; - - - Esempio di creazione di un nuovo elemento ed inserimento nel documento come root - -createElementNS('http://www.example.com/XFoo', 'xfoo:test', 'This is the root element!'); - -// inserimento dell'elemento come root (figlio del nodo documento) -$dom->appendChild($element); - -echo $dom->saveXML(); -?> -]]> - - &example.outputs; - - -This is the root element! -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createentityreference.xml b/reference/dom/functions/dom-domdocument-createentityreference.xml deleted file mode 100644 index feeab4446..000000000 --- a/reference/dom/functions/dom-domdocument-createentityreference.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - DOMDocument->createEntityReference() - Crea un nuovo nodo riferimento ad entità - - - &reftitle.description; - - DOMDocument - - DOMEntityReferencecreateEntityReference - stringname - - - - Questa funzione crea una nuova istanza della classe - DOMEntityReference. &dom.node.inserted; - - - - &reftitle.parameters; - - - - name - - - Il contenuto del riferimento all'entità, ad esempio il riferimento all'entità meno - & iniziale e - ; finale. - - - - - - - - &reftitle.returnvalues; - - Il nuovo DOMEntityReference oppure &false; in caso di errore. - - - - &reftitle.exceptions; - - - - DOM_INVALID_CHARACTER_ERR - - - Generato se name contiene caratteri non validi. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml b/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml deleted file mode 100644 index f7ca798f3..000000000 --- a/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - DOMDocument->createProcessingInstruction() - Crea un nuovo nodo PI - - - &reftitle.description; - - DOMDocument - - DOMProcessingInstructioncreateProcessingInstruction - stringtarget - stringdata - - - - Questa funzione crea una nuova istanza della classe - DOMProcessingInstruction. &dom.node.inserted; - - - - &reftitle.parameters; - - - - target - - - Il target delle itrsuzioni di processamento. - - - - - data - - - Il contenuto della PI. - - - - - - - - &reftitle.returnvalues; - - La nuova istanza di DOMProcessingInstruction oppure &false; in caso di errore. - - - - &reftitle.exceptions; - - - - DOM_INVALID_CHARACTER_ERR - - - Generato se target contiene caratteri non validi. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-createtextnode.xml b/reference/dom/functions/dom-domdocument-createtextnode.xml deleted file mode 100644 index 48bf7dcbe..000000000 --- a/reference/dom/functions/dom-domdocument-createtextnode.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - DOMDocument->createTextNode() - Crea un nuovo nodo di testo - - - &reftitle.description; - - DOMDocument - - DOMTextcreateTextNode - stringcontent - - - - Questa funzione crea una nuova istanza della classe - DOMText. &dom.node.inserted; - - - - &reftitle.parameters; - - - - content - - - Il contenuto del testo. - - - - - - - - &reftitle.returnvalues; - - La nuova istanza di DOMText oppure &false; in caso di errore. - - - - &reftitle.seealso; - - - - - - - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-getelementbyid.xml b/reference/dom/functions/dom-domdocument-getelementbyid.xml deleted file mode 100644 index 3e36ade70..000000000 --- a/reference/dom/functions/dom-domdocument-getelementbyid.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - DOMDocument->getElementById() - Cerca un elemento con un certo id - - - &reftitle.description; - - DOMDocument - - DOMElementgetElementById - stringelementId - - - - Questa funzione è simile a - , ma cerca - un elemento per il dato id. - - - In base allo standard DOM, questa funzione riochiede la presenza di una DTD che definisca - l'attributo ID di tipo ID. Occorre validare il documento con - - oppure DOMDocument->validateOnParse prima di utilizzare questa funzione. - - - - &reftitle.parameters; - - - - elementId - - - Il valore dell'id univoco per le'elemento. - - - - - - - - &reftitle.returnvalues; - - Restituisce DOMElement oppure &null; se l'elemento non - è trovato. - - - - &reftitle.examples; - - Esempio di uso di DOMDocument->getElementById() - -validateOnParse = true; -$doc->Load('book.xml'); - -echo "The element whose id is books is: " . $doc->getElementById('books')->tagName . "\n"; - -?> -]]> - - &example.outputs; - - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-getelementsbytagname.xml b/reference/dom/functions/dom-domdocument-getelementsbytagname.xml deleted file mode 100644 index a6652d39a..000000000 --- a/reference/dom/functions/dom-domdocument-getelementsbytagname.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - DOMDocument->getElementsByTagName() - Cerca tutti gli eleemnti per un dato nome di tag - - - &reftitle.description; - - DOMDocument - - DOMNodeListgetElementsByTagName - stringname - - - - Questa funzione crea una nuova istanza della classe - DOMNodeList contenente gli elementi con il - nome tag cercato. - - - - &reftitle.parameters; - - - - name - - - Il nome del tag da cercare. Il valore spaciale * - indica tutti i tag. - - - - - - - - &reftitle.returnvalues; - - Una nuova istanza dell'oggetto DOMNodeList contenente tutti gli elementi - trovati. - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml b/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml deleted file mode 100644 index 750185a9d..000000000 --- a/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - - - DOMDocument->getElementsByTagNameNS() - - Ricerca tutti gli elementi per un dato nome tag nello spazio dei nomi indicato. - - - - &reftitle.description; - - DOMDocument - - DOMNodeListgetElementsByTagNameNS - stringnamespaceURI - stringlocalName - - - - Restituicse un DOMNodeList contenente tutti gli elementi - con il nome e lo spazio dei nomi indicati. - - - - &reftitle.parameters; - - - - namespaceURI - - - L' URI dello spazio dei nomi degli elementi da cercare. - Il valore speciale * indica tutti. - - - - - localName - - - Il nome locale degli elementi da cercare. - Il valore speciale * indica tutti. - - - - - - - - &reftitle.returnvalues; - - Un nuovo oggetto DOMNodeList contenente tutti gli - elementi trovati. - - - - &reftitle.examples; - - - Ottienet tutti gli elementi XInclude - - - -Books of the other guy.. - - - - xinclude: book.xml not found - - - - This is another namespace - - - -EOD; -$dom = new DOMDocument; - -// Carica la stringa definita in precedenza -$dom->loadXML($xml); - -foreach ($dom->getElementsByTagNameNS('http://www.w3.org/2001/XInclude', '*') as $element) { - echo 'local name: ', $element->localName, ', prefix: ', $element->prefix, "\n"; -} -?> -]]> - - &example.outputs; - - - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-importnode.xml b/reference/dom/functions/dom-domdocument-importnode.xml deleted file mode 100644 index 1e28b07a9..000000000 --- a/reference/dom/functions/dom-domdocument-importnode.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - DOMDocument->importNode() - Importa un nodo nel documento corrente - - - &reftitle.description; - - DOMDocument - - DOMNodeimportNode - DOMNodeimportedNode - booldeep - - - - Questa funzione restituisce una copia del nodo da importare e lo associa - al documento corrente. - - - - &reftitle.parameters; - - - - importedNode - - - Il nodo da importare. - - - - - deep - - - Se impostato a &true;, questo metodo importerà in modo ricorsivo il sotto-albero di - importedNode. - - - - - - - - &reftitle.returnvalues; - - Il nodo copiato. - - - - &reftitle.exceptions; - - DOMException è generato se il nodo non può essere importato. - - - - - diff --git a/reference/dom/functions/dom-domdocument-load.xml b/reference/dom/functions/dom-domdocument-load.xml deleted file mode 100644 index 2b5cefc24..000000000 --- a/reference/dom/functions/dom-domdocument-load.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - DOMDocument->load() - - Carica un documento XML da un file - - - - &reftitle.description; - - DOMDocument - - boolload - stringfilename - - - - Carica un documento XML da un file. - - - Questo metodo può essere richiamato staticamente per caricare e creare un oggetto - DOMDocument. L'inbvocazione statica può essere utilizzata - quando non occorre impostare le proprietà di DOMDocument - prima del caricamento. - - - - &reftitle.parameters; - - - - filename - - - Il percorso al documento XML. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.examples; - - - Creazione di un documento - -saveXML(); - -$doc = new DOMDocument(); -$doc->load('book.xml'); -echo $doc->saveXML(); -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-loadhtml.xml b/reference/dom/functions/dom-domdocument-loadhtml.xml deleted file mode 100644 index 80c348253..000000000 --- a/reference/dom/functions/dom-domdocument-loadhtml.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - DOMDocument->loadHTML() - - Carica una pagina HTML da una stringa - - - - &reftitle.description; - - DOMDocument - - boolloadHTML - stringsource - - - - La funzione esegue il parsing di una pagina HTML contenuta nella stringa source. - A differenza del carico di un documento XML, il documento HTML non deve essere ben formato per potere essere caricato. - Questa funzione può essere richiamata staticamente per caricare e creare un oggetto - DOMDocument. L'invocazione statica può essere utilizzata - quando non debbano essere impostate proprietà per DOMDocument - prima del caricamento. - - - - &reftitle.parameters; - - - - source - - - La stringa HTML. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.examples; - - - Creazione di un documento - -Test
"); -echo $doc->saveHTML(); - -$doc = new DOMDocument(); -$doc->loadHTML("Test
"); -echo $doc->saveHTML(); -?> -]]> -
-
-
-
- - &reftitle.seealso; - - - - - - - - -
- - diff --git a/reference/dom/functions/dom-domdocument-loadhtmlfile.xml b/reference/dom/functions/dom-domdocument-loadhtmlfile.xml deleted file mode 100644 index 0d359b2ec..000000000 --- a/reference/dom/functions/dom-domdocument-loadhtmlfile.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - DOMDocument->loadHTMLFile() - - Carica un file HTML - - - - &reftitle.description; - - DOMDocument - - boolloadHTMLFile - stringfilename - - - - La funzione esegue il parsing del file HTML - filename. A differenza del carico di un documento XML, - il documento HTML non deve essere ben formato per potere essere caricato. - - - Questa funzione può essere richiamata staticamente per caricare e creare un oggetto - DOMDocument. L'invocazione statica può essere utilizzata - quando non debbano essere impostate proprietà per DOMDocument - prima del caricamento. - - - - &reftitle.parameters; - - - - filename - - - Il nome del file HTML. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.examples; - - - Creazione di un documento - -saveHTML(); - -$doc = new DOMDocument(); -$doc->loadHTMLFile("filename.html"); -print $doc->saveHTML(); -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-loadxml.xml b/reference/dom/functions/dom-domdocument-loadxml.xml deleted file mode 100644 index dcff23eb9..000000000 --- a/reference/dom/functions/dom-domdocument-loadxml.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - DOMDocument->loadXML() - - Carica un documento XML da una stringa - - - - &reftitle.description; - - DOMDocument - - boolloadXML - stringsource - - - - Carica un documento XML da una stringa. - - - Questa funzione può essere richiamata staticamente per caricare e creare un oggetto - DOMDocument. L'invocazione statica può essere utilizzata - quando non debbano essere impostate proprietà per DOMDocument - prima del caricamento. - - - - &reftitle.parameters; - - - - source - - - Stringa contenente codice XML. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.examples; - - - Creazione di un documento - -'); -echo $doc->saveXML(); - -$doc = new DOMDocument(); -$doc->loadXML(''); -echo $doc->saveXML(); -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-normalize.xml b/reference/dom/functions/dom-domdocument-normalize.xml deleted file mode 100644 index 230be764d..000000000 --- a/reference/dom/functions/dom-domdocument-normalize.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - DOMDocument->normalize() - - Normalizza il documento - - - - &reftitle.description; - - DOMDocument - - voidnormalize - - - - - Normalizza il documento. - - - - &reftitle.returnvalues; - - &return.void; - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-relaxngvalidate.xml b/reference/dom/functions/dom-domdocument-relaxngvalidate.xml deleted file mode 100644 index 0711b9928..000000000 --- a/reference/dom/functions/dom-domdocument-relaxngvalidate.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - DOMDocument->relaxNGValidate() - - Esegue una validazione relaxNG sul documento - - - - &reftitle.description; - - DOMDocument - - boolrelaxNGValidate - stringfilename - - - - Esegue una validazione relaxNG sul documento - in base allo schema RNG dato. - - - - &reftitle.parameters; - - - - filename - - - File RNG. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml b/reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml deleted file mode 100644 index 2d6cd5500..000000000 --- a/reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - DOMDocument->relaxNGValidateSource() - - Esegue una validazione relaxNG sul documento - - - - &reftitle.description; - - DOMDocument - - boolrelaxNGValidateSource - stringsource - - - - Esegue una validazione relaxNG sul documento in - base alla sorgente RNG data. - - - - &reftitle.parameters; - - - - source - - - Stringa contenente lo schema RNG. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-save.xml b/reference/dom/functions/dom-domdocument-save.xml deleted file mode 100644 index ee4508868..000000000 --- a/reference/dom/functions/dom-domdocument-save.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - DOMDocument->save() - - Scarica l'albero XML interno in un file - - - - &reftitle.description; - - DOMDocument - - mixedsave - stringfilename - - - - Crea un docuemnto XML dalla rappresentazione DOM. Usualmente questa funzione è - chiamata dopo la creazione da zero di un nuovo documento DOM come nell'esempio seguente. - - - - &reftitle.parameters; - - - - filename - - - Percorso del file in cui scrivere il documento XML. - - - - - - - - &reftitle.returnvalues; - - La funzione restituisce il numero di byte scritti, oppure &false; in caso di errore. - - - - &reftitle.examples; - - - Salvataggio di un albero DOM in un file - -formatOutput = true; - -$root = $doc->createElement('book'); -$root = $doc->appendChild($root); - -$title = $doc->createElement('title'); -$title = $root->appendChild($title); - -$text = $doc->createTextNode('This is the title'); -$text = $title->appendChild($text); - -echo 'Wrote: ' . $doc->save("/tmp/test.xml") . ' bytes'; // Wrote: 72 bytes - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-saveHTML.xml b/reference/dom/functions/dom-domdocument-saveHTML.xml deleted file mode 100644 index f037796ae..000000000 --- a/reference/dom/functions/dom-domdocument-saveHTML.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - DOMDocument->saveHTML() - - Scarica il documento interno in una stringa utilizzando il formato HTML - - - - &reftitle.description; - - DOMDocument - - stringsaveHTML - - - - - Crea un documento HTML dalla rappresentazione DOM. Solitamente questa funzione - viene utilizzata dopo avere costruito un nuovo documento da zero, come nell'esempio seguente. - - - - &reftitle.returnvalues; - - Restituisce il codice HTML, oppure &false; in caso di errore. - - - - &reftitle.examples; - - - Salvataggio di un albero HTML in una stringa - -formatOutput = true; - -$root = $doc->createElement('html'); -$root = $doc->appendChild($root); - -$head = $doc->createElement('head'); -$head = $root->appendChild($head); - -$title = $doc->createElement('title'); -$title = $head->appendChild($title); - -$text = $doc->createTextNode('This is the title'); -$text = $title->appendChild($text); - -echo $doc->saveHTML(); - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-saveHTMLFile.xml b/reference/dom/functions/dom-domdocument-saveHTMLFile.xml deleted file mode 100644 index e02dbe4d6..000000000 --- a/reference/dom/functions/dom-domdocument-saveHTMLFile.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - DOMDocument->saveHTMLFile() - - Scarica il documento interno in un file in formato HTML - - - - &reftitle.description; - - DOMDocument - - intsaveHTMLFile - stringfilename - - - - Crea un documento HTML a partire da una rappresentazione DOM. Solitamente questa funzione - viene eseguita dopo avere creato un nuovo documento DOM da zero, come nel seguente esempio. - - - - &reftitle.parameters; - - - - filename - - - Percorso del file HTML da scrivere. - - - - - - - - &reftitle.returnvalues; - - La funzione restituisce il numero di bytre scritti oppure &false; in caso di errore. - - - - &reftitle.examples; - - - Salvataggio di un albero HTML in un file - -formatOutput = true; - -$root = $doc->createElement('html'); -$root = $doc->appendChild($root); - -$head = $doc->createElement('head'); -$head = $root->appendChild($head); - -$title = $doc->createElement('title'); -$title = $head->appendChild($title); - -$text = $doc->createTextNode('This is the title'); -$text = $title->appendChild($text); - -echo 'Wrote: ' . $doc->saveHTMLFile("/tmp/test.html") . ' bytes'; // Wrote: 129 bytes - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-saveXML.xml b/reference/dom/functions/dom-domdocument-saveXML.xml deleted file mode 100644 index f01dbde68..000000000 --- a/reference/dom/functions/dom-domdocument-saveXML.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - DOMDocument->saveXML() - - Scarica l'albero XML interno in una stringa - - - - &reftitle.description; - - DOMDocument - - stringsaveXML - DOMNodenode - - - - Crea un documento XML da una rappresentazione DOM. Questa funzione è - solitamente chiamata dopo avere creato un documento DOM da zero, come nell'esempio seguente. - - - - &reftitle.parameters; - - - - node - - - Utilizzare questo parametro per indicare di scaricare solo il nodo - piuttosto che l'intero documento. - - - - - - - - &reftitle.returnvalues; - - Restituisce l'XML, oppure &false; in caso di errore. - - - - &reftitle.exceptions; - - - - DOM_WRONG_DOCUMENT_ERR - - - Generato se node è di un'altro documento. - - - - - - - - &reftitle.examples; - - - Salvataggio di un albero DOM in una stringa - -formatOutput = true; - -$root = $doc->createElement('book'); -$root = $doc->appendChild($root); - -$title = $doc->createElement('title'); -$title = $root->appendChild($title); - -$text = $doc->createTextNode('This is the title'); -$text = $title->appendChild($text); - -echo "Retrieving all the document:\n"; -echo $doc->saveXML() . "\n"; - -echo "Retrieving only the title part:\n"; -echo $doc->saveXML($title); - -?> -]]> - - &example.outputs; - - - - This is the title - - -Retrieving only the title part: -This is the title -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-schemaValidate.xml b/reference/dom/functions/dom-domdocument-schemaValidate.xml deleted file mode 100644 index ad62ed748..000000000 --- a/reference/dom/functions/dom-domdocument-schemaValidate.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - DOMDocument->schemaValidate() - - Validazione di un documento in base ad uno schema - - - - &reftitle.description; - - DOMDocument - - boolschemaValidate - stringfilename - - - - Valida un documento in base allo schema dato. - - - - &reftitle.parameters; - - - - filename - - - Path dello schema. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-schemaValidateSource.xml b/reference/dom/functions/dom-domdocument-schemaValidateSource.xml deleted file mode 100644 index 4a4677c28..000000000 --- a/reference/dom/functions/dom-domdocument-schemaValidateSource.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - DOMDocument->schemaValidateSource() - - Valida un documento in base ad uno schema - - - - &reftitle.description; - - DOMDocument - - boolschemaValidateSource - stringsource - - - - Valida un documento in base allo schema definito nella stringa data. - - - - &reftitle.parameters; - - - - source - - - Stringa contenente lo schema. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-validate.xml b/reference/dom/functions/dom-domdocument-validate.xml deleted file mode 100644 index 6749281ed..000000000 --- a/reference/dom/functions/dom-domdocument-validate.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - DOMDocument->validate() - - Valida il documento in base alla sua DTD - - - - &reftitle.description; - - DOMDocument - - boolvalidate - - - - - Valida il documento in base alla sua DTD. - - - Si può anche utilizzare la proprietà validateOnParse di - DOMDocument per ottenere una validazione DTD. - - - - &reftitle.returnvalues; - - &return.success; - Se il documenti non ha una DTD collegata, questo metodo restituisce &false;. - - - - &reftitle.examples; - - - Esempio di validazione con DTD - -Load('book.xml'); -if ($dom->validate()) { - echo "Questo documento è valido!\n"; -} -?> -]]> - - - Si può anche validare il documento mentre lo si carica: - - -validateOnParse = true; -$dom->Load('book.xml'); -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domdocument-xinclude.xml b/reference/dom/functions/dom-domdocument-xinclude.xml deleted file mode 100644 index fee4d2dfd..000000000 --- a/reference/dom/functions/dom-domdocument-xinclude.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - DOMDocument->xinclude() - - Sostituisce gli XIncludes in un oggetto DOMDocument - - - - &reftitle.description; - - DOMDocument - - intxinclude - intoptions - - - - Sostituisce gli XIncludes in un oggetto DOMDocument. - - - - Poiché libxml2 risolve automaticamente le entità, quetso metodo può dare - risultati inaspettati si il fil eXML incluso ha una DTD collegata. - - - - - &reftitle.parameters; - - - - options - - - parametri libxml. Disponibile da - PHP 5.1.0 e Libxml 2.6.7. - - - - - - - - &reftitle.returnvalues; - - Restituisce il numero di XIncludes nel documento. - - - - &reftitle.examples; - - - Esempio di uso di DOMDocument->xinclude() - - - - Books of the other guy.. - - - - xinclude: book.xml not found - - - - -EOD; - -$dom = new DOMDocument; - -// output formattato -$dom->preserveWhiteSpace = false; -$dom->formatOutput = true; - -// carica la stringa XML definita in precedenza -$dom->loadXML($xml); - -// sostituisce gli xincludes -$dom->xinclude(); - -echo $dom->saveXML(); - -?> -]]> - - &example.outputs.similar; - - - - Books of the other guy.. - - - The Grapes of Wrath - John Steinbeck - en - 0140186409 - - - The Pearl - John Steinbeck - en - 014017737X - - - Samarcande - Amine Maalouf - fr - 2253051209 - - - -]]> - - - - - - - diff --git a/reference/dom/functions/dom-domelement-construct.xml b/reference/dom/functions/dom-domelement-construct.xml deleted file mode 100644 index 640c60849..000000000 --- a/reference/dom/functions/dom-domelement-construct.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - - DOMElement->__construct() - - Crea un nuovo oggetto DOMElement - - - - &reftitle.description; - - DOMElement - - __construct - stringname - stringvalue - stringnamespaceURI - - - - Crea un nuovo oggetto DOMElement. Questo oggetto è in sola lettura. - Può essere aggiunto al documento, ma nodi addizionali non possono essere aggiunti a questo, fino a quando - il nodo è associatoi al docuemnto. Per creare un nodo modificabile utilizzare - oppure - . - - - - &reftitle.parameters; - - - - name - - - Nome del tag dell'elemento. Quando si passa l'URI di uno spazio dei nomi, il nome dell'elemento - può avere un prefisso per essere associato all'URI. - - - - - value - - - Valore dell'elemento. - - - - - namespaceURI - - - URI dello spazio dei nomi, usato per creare l'elemento nello spazio dei nomi indicato. - - - - - - - - &reftitle.examples; - - - Creazione di un nuovo DOMElement - -appendChild(new DOMElement('root')); -$element_ns = new DOMElement('pr:node1', 'thisvalue', 'http://xyz'); -$element->appendChild($element_ns); -echo $dom->saveXML(); /* -thisvalue */ - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-getattribute.xml b/reference/dom/functions/dom-domelement-getattribute.xml deleted file mode 100644 index bb136f715..000000000 --- a/reference/dom/functions/dom-domelement-getattribute.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - DOMElement->getAttribute() - Restituisce il valore di un attributo - - - &reftitle.description; - - DOMElement - - stringgetAttribute - stringname - - - - Restituisce il valore dell'attributo con nome name - per il nodo corrente. - - - - &reftitle.parameters; - - - - name - - - Nome dell'attributo. - - - - - - - - &reftitle.returnvalues; - - La funzione restituisce il valore dell'attributo oppure una stringa vuota se non si trova - alcun attributo con nome name. - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-getattributenode.xml b/reference/dom/functions/dom-domelement-getattributenode.xml deleted file mode 100644 index 4cafeb495..000000000 --- a/reference/dom/functions/dom-domelement-getattributenode.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - DOMElement->getAttributeNode() - Restituisce il nodo attributo - - - &reftitle.description; - - DOMElement - - DOMAttrgetAttributeNode - stringname - - - - Restituisce il nodo attributo con nome name per l'elemento - corrente. - - - - &reftitle.parameters; - - - - name - - - Nome dell'attributo. - - - - - - - - &reftitle.returnvalues; - - Il nodo attributo. - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-getattributenodens.xml b/reference/dom/functions/dom-domelement-getattributenodens.xml deleted file mode 100644 index 5f6326168..000000000 --- a/reference/dom/functions/dom-domelement-getattributenodens.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - DOMElement->getAttributeNodeNS() - - Restituisce un nodo attributo - - - - &reftitle.description; - - DOMElement - - DOMAttrgetAttributeNodeNS - stringnamespaceURI - stringlocalName - - - - Restituisce il nodo attributo cone nome localName nello - spazio dei nomi namespaceURI per il nodo corrente. - - - - &reftitle.parameters; - - - - namespaceURI - - - URI dello spazio dei nomi. - - - - - localName - - - Nome locale. - - - - - - - - &reftitle.returnvalues; - - The attribute node. - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-getattributens.xml b/reference/dom/functions/dom-domelement-getattributens.xml deleted file mode 100644 index b43154ea5..000000000 --- a/reference/dom/functions/dom-domelement-getattributens.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - DOMElement->getAttributeNS() - Restituisce il valore di un attributo - - - &reftitle.description; - - DOMElement - - stringgetAttributeNS - stringnamespaceURI - stringlocalName - - - - Restituisce il valore dell'attributo con nome localName - nello spazio dei nomi namespaceURI per il nodo corrente. - - - - &reftitle.parameters; - - - - namespaceURI - - - URI dello spazio dei nomi. - - - - - localName - - - Nome locale. - - - - - - - - &reftitle.returnvalues; - - Il valore dell'attributo, oppure una stringa vuota nel caso in cui non si trovi un attributo - con i dati localName - e namespaceURI. - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-getelementsbytagname.xml b/reference/dom/functions/dom-domelement-getelementsbytagname.xml deleted file mode 100644 index b8e0cb04c..000000000 --- a/reference/dom/functions/dom-domelement-getelementsbytagname.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - DOMElement->getElementsByTagName() - Restituisce gli elementi in base al nome del tag - - - &reftitle.description; - - DOMElement - - DOMNodeListgetElementsByTagName - stringname - - - - Questa funzione restituisce una nuova istanza della classe - DOMNodeList contenente gli elementi i cui nomi di tag - corrispondono al parametro name, nell'ordine in cui - sono incontrati durante l'attraversamento dell'albero. - - - - &reftitle.parameters; - - - - name - - - Il nome del tag. Utilizzare "*" per indicare di restituire tutti - gli elementi del documento. - - - - - - - - &reftitle.returnvalues; - - Questa funzione crea una nuova istanza della classe - DOMNodeList contenente tutti gli elementi trovati. - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-getelementsbytagnamens.xml b/reference/dom/functions/dom-domelement-getelementsbytagnamens.xml deleted file mode 100644 index 959179de2..000000000 --- a/reference/dom/functions/dom-domelement-getelementsbytagnamens.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - DOMElement->getElementsByTagNameNS() - Restituisce gli elementi per spazio dei nomi e nome locale - - - &reftitle.description; - - DOMElement - - DOMNodeListgetElementsByTagNameNS - stringnamespaceURI - stringlocalName - - - - Questa funzione scarica tutti gli elementi con un dato - localName e namespaceURI. - - - - &reftitle.parameters; - - - - namespaceURI - - - URI dello spazio dei nomi. - - - - - localName - - - Nome locale. Utilizzare come nome "*" per restituire tutti gli elementi presenti - nell'albero degli elementi. - - - - - - - - &reftitle.returnvalues; - - Questa funzione crea una nuova istanza della classe - DOMNodeList contenente tutti gli elementi trovati nell'ordine - in cui sono incontrati durante l'atttraversamento dell'albero degli elementi. - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-hasattribute.xml b/reference/dom/functions/dom-domelement-hasattribute.xml deleted file mode 100644 index 04d48abf0..000000000 --- a/reference/dom/functions/dom-domelement-hasattribute.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - DOMElement->hasAttribute() - Verifica se l'attributo esiste - - - &reftitle.description; - - DOMElement - - boolhasAttribute - stringname - - - - Indica se l'attributo name - esiste come menbro dell'elemento. - - - - &reftitle.parameters; - - - - name - - - Nome dell'attributo. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-hasattributens.xml b/reference/dom/functions/dom-domelement-hasattributens.xml deleted file mode 100644 index efb306d60..000000000 --- a/reference/dom/functions/dom-domelement-hasattributens.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - DOMElement->hasAttributeNS() - - Verifica se esiste l'attributo - - - - &reftitle.description; - - DOMElement - - boolhasAttributeNS - stringnamespaceURI - stringlocalName - - - - Indica se l'attributo nello spazio dei nomi namespaceURI - con nome localName esiste come membro dell'elemento. - - - - &reftitle.parameters; - - - - namespaceURI - - - URI dello spazio dei nomi. - - - - - localName - - - Nome locale. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-removeattribute.xml b/reference/dom/functions/dom-domelement-removeattribute.xml deleted file mode 100644 index 41b676d50..000000000 --- a/reference/dom/functions/dom-domelement-removeattribute.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - DOMElement->removeAttribute() - Rimuove l'attributo - - - &reftitle.description; - - DOMElement - - boolremoveAttribute - stringname - - - - Rimuove l'attributo name dall'elemento. - - - - &reftitle.parameters; - - - - name - - - Nome dell'attributo. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se il nodo non può essere modificato (in sola lettura). - - - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-removeattributenode.xml b/reference/dom/functions/dom-domelement-removeattributenode.xml deleted file mode 100644 index 5f045dbb8..000000000 --- a/reference/dom/functions/dom-domelement-removeattributenode.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - DOMElement->removeAttributeNode() - Rimuove gli attributi - - - &reftitle.description; - - DOMElement - - boolremoveAttributeNode - DOMAttroldnode - - - - Rimuove l'attributo oldnode dall'elemento. - - - - &reftitle.parameters; - - - - oldnode - - - Nodo attributo. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se il nodo è in sola lettura. - - - - - DOM_NOT_FOUND_ERROR - - - Generato se oldnode non è un attributo dell'elemento. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-removeattributens.xml b/reference/dom/functions/dom-domelement-removeattributens.xml deleted file mode 100644 index 3f7c2c41b..000000000 --- a/reference/dom/functions/dom-domelement-removeattributens.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - DOMElement->removeAttributeNS() - Rimuove gli attributi - - - &reftitle.description; - - DOMElement - - boolremoveAttributeNS - stringnamespaceURI - stringlocalName - - - - Rimuove l'attributo localName nello spazio dei - nomi namespaceURI dall'elemento. - - - - &reftitle.parameters; - - - - namespaceURI - - - URI dello spazio dei nomi. - - - - - localName - - - Nome locale. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se il nodo è in sola lettura. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-setattribute.xml b/reference/dom/functions/dom-domelement-setattribute.xml deleted file mode 100644 index 76e3249a3..000000000 --- a/reference/dom/functions/dom-domelement-setattribute.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - DOMElement->setAttribute() - Aggiunge un nuovo attributo - - - &reftitle.description; - - DOMElement - - boolsetAttribute - stringname - stringvalue - - - - Imposta l'attributo con nome name al dato - valore. Se l'attributo non esiste lo crea. - - - - &reftitle.parameters; - - - - name - - - Nome dell'attributo. - - - - - value - - - Valore dell'attributo. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se il nodo è in sola lettura. - - - - - - - - &reftitle.examples; - - - Setting an attribute - -createElement("para"); -$newnode = $doc->appendChild($node); -$newnode->setAttribute("align", "left"); -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-setattributenode.xml b/reference/dom/functions/dom-domelement-setattributenode.xml deleted file mode 100644 index ba2fbd41d..000000000 --- a/reference/dom/functions/dom-domelement-setattributenode.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - DOMElement->setAttributeNode() - Aggiunge un nuovo nodo attributo all'elemento - - - &reftitle.description; - - DOMElement - - DOMAttrsetAttributeNode - DOMAttrattr - - - - Aggiunge un nuovo nodo attributo attr all'elemento. - - - - &reftitle.parameters; - - - - attr - - - Nodo attributo. - - - - - - - - &reftitle.returnvalues; - - Restituisce il vecchio nodo se questo viene sostituito oppure &null;. - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se il nodo è in sola lettura. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-setattributenodens.xml b/reference/dom/functions/dom-domelement-setattributenodens.xml deleted file mode 100644 index e3e93bb56..000000000 --- a/reference/dom/functions/dom-domelement-setattributenodens.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - DOMElement->setAttributeNodeNS() - Aggiunge un nuovo nodo attributo all'elemento - - - &reftitle.description; - - DOMElement - - DOMAttrsetAttributeNodeNS - DOMAttrattr - - - - Aggiunge un nuovo nodo attr all'elemento. - - - - &reftitle.parameters; - - - - name - - - Nodo attributo. - - - - - - - - &reftitle.returnvalues; - - Restituisce il vecchio nodo se l'attributo viene sostituito. - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se il nodo è in sola lettura. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domelement-setattributens.xml b/reference/dom/functions/dom-domelement-setattributens.xml deleted file mode 100644 index 19530204e..000000000 --- a/reference/dom/functions/dom-domelement-setattributens.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - DOMElement->setAttributeNS() - Aggiunge un nuovo attributo - - - &reftitle.description; - - DOMElement - - voidsetAttributeNS - stringnamespaceURI - stringqualifiedName - stringvalue - - - - Imposta un attributo di nome name nello spazio - dei nomi namespaceURI al valore dato. Se l'attributo - non esiste viene creato. - - - - &reftitle.parameters; - - - - namespaceURI - - - URI dello spazio dei nomi. - - - - - qualifiedName - - - Nome qualificato dell'attributo, nella forma prefisso:nometag. - - - - - value - - - Valore dell'attributo. - - - - - - - - &reftitle.returnvalues; - - &return.void; - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se il nodo è in sola lettura. - - - - - DOM_NAMESPACE_ERR - - - Generato se qualifiedName è un nome qualificato - malformato, oppure se qualifiedName ha un prefisso, ma - namespaceURI è &null;. - - - - - - - - &reftitle.seealso; - - - - - - - - - - - diff --git a/reference/dom/functions/dom-domentityreference-construct.xml b/reference/dom/functions/dom-domentityreference-construct.xml deleted file mode 100644 index afe856322..000000000 --- a/reference/dom/functions/dom-domentityreference-construct.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - DOMAttr->__construct() - - Crea un nuovo oggetto DOMEntityReference - - - - &reftitle.description; - - DOMEntityReference - - __construct - stringname - - - - Crea un nuovo oggetto DOMEntityReference. - - - - &reftitle.parameters; - - - - name - - - Nome dell'entità - - - - - - - - &reftitle.examples; - - - Creazione di un nuovo DOMEntityReference - -appendChild(new DOMElement('root')); -$entity = $element->appendChild(new DOMEntityReference('nbsp')); -echo $dom->saveXML(); /*   */ - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domimplementation-construct.xml b/reference/dom/functions/dom-domimplementation-construct.xml deleted file mode 100644 index 9b217f8d0..000000000 --- a/reference/dom/functions/dom-domimplementation-construct.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - DOMImplementation->__construct() - - Crea un nuovo oggetto DOMImplementation - - - - &reftitle.description; - - DOMImplementation - - __construct - - - - - Crea un nuovo oggetto DOMImplementation. - - - - - diff --git a/reference/dom/functions/dom-domimplementation-createdocument.xml b/reference/dom/functions/dom-domimplementation-createdocument.xml deleted file mode 100644 index 9777bf30a..000000000 --- a/reference/dom/functions/dom-domimplementation-createdocument.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - DOMImplementation->createDocument() - - Crea un oggetto DOMDocument del tipo indicato con il suo elemento documento - - - - &reftitle.description; - - DOMImplementation - - DOMDocumentcreateDocument - stringnamespaceURI - stringqualifiedName - DOMDocumentTypedoctype - - - - Crea un oggetto DOMDocument del tipo specificato, - con l'elemento documento. - - - - &reftitle.parameters; - - - - namespaceURI - - - URI dello spazio dei nomi dell'elemento documento da creare. - - - - - qualifiedName - - - Nome qualificato dell'elemento documento da creare. - - - - - doctype - - - Tipo del documento da creare oppure &null;. - - - - - - - - &reftitle.returnvalues; - - Restituisce un nuovo oggetto DOMDocument. - Se namespaceURI, qualifiedName, - e doctype sono a null, l'oggetto DOMDocument restituito - è vuoto, cioè privo dell'elemento documento. - - - - &reftitle.exceptions; - - - - DOM_WRONG_DOCUMENT_ERR - - - Generato se doctype è già utilizzato in un documento - differente oppure è stato creato con una differente implementazione. - - - - - DOM_NAMESPACE_ERR - - - Generato se esiste un errore nello spazio dei nomi indicato da - namespaceURI e qualifiedName. - - - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/dom/functions/dom-domimplementation-createdocumenttype.xml b/reference/dom/functions/dom-domimplementation-createdocumenttype.xml deleted file mode 100644 index 01ac50b64..000000000 --- a/reference/dom/functions/dom-domimplementation-createdocumenttype.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - DOMImplementation->createDocumentType() - - Crea un oggetto DOMDocumentType vuoto - - - - &reftitle.description; - - DOMImplementation - - DOMDocumentTypecreateDocumentType - stringqualifiedName - stringpublicId - stringsystemId - - - - Crea un oggetto DOMDocumentType vuoto. Le dichiarazioni delle entità - e notazioni non sono disponibili. L'espansione delle entità e gli attributi di default - non sono presenti. - - - - &reftitle.parameters; - - - - qualifiedName - - - Nome qualificato del tipo documento da creare. - - - - - publicId - - - Identificatore pubblico esterno. - - - - - systemId - - - Identificatore di sistema esterno. - - - - - - - - &reftitle.returnvalues; - - Un nuovo nodo DOMDocumentType con il suo - ownerDocument impostato a &null;. - - - - &reftitle.examples; - - - Creazione di un documento con una DTD collegata - - createDocumentType('graph', '', 'graph.dtd'); - -// Crea un'istanza di DOMDocument -$dom = $imp->createDocument("", "", $dtd); - -// Imposta altre opzioni -$dom->encoding = 'UTF-8'; -$dom->standalone = false; - -// Crea un elemento vuoto -$element = $dom->createElement('graph'); - -// Aggiunge l'elemento -$dom->appendChild($element); - -// Recupera e scrive il documento -echo $dom->saveXML(); - -?> -]]> - - &example.outputs; - - - - -]]> - - - - - - &reftitle.exceptions; - - - - DOM_NAMESPACE_ERR - - - Generato se vi è un errore nello spazio dei nomi indicato da - qualifiedName. - - - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domimplementation-hasfeature.xml b/reference/dom/functions/dom-domimplementation-hasfeature.xml deleted file mode 100644 index fccb6f8db..000000000 --- a/reference/dom/functions/dom-domimplementation-hasfeature.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - DOMImplementation->hasFeature() - - Verifica se l'implementazione DOM ha una specifica caratteristica - - - - &reftitle.description; - - DOMImplementation - - boolhasFeature - stringfeature - stringversion - - - - Verifica se l'implementazione DOM ha una specifica - feature. - - - Si può avere l'eleneco di tutte le caratteristiche alla sezione Conformance delle specifiche - DOM. - - - - &reftitle.parameters; - - - - feature - - - Caratteristica da verificare. - - - - - version - - - Numero di versione della feature da verificare. Nel - livello 2 questo parametro può valere 2.0 o - 1.0. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.examples; - - Verifica dell'implementazione DOM - - 'Core module', - 'XML' => 'XML module', - 'HTML' => 'HTML module', - 'Views' => 'Views module', - 'Stylesheets' => 'Style Sheets module', - 'CSS' => 'CSS module', - 'CSS2' => 'CSS2 module', - 'Events' => 'Events module', - 'UIEvents' => 'User interface Events module', - 'MouseEvents' => 'Mouse Events module', - 'MutationEvents' => 'Mutation Events module', - 'HTMLEvents' => 'HTML Events module', - 'Range' => 'Range module', - 'Traversal' => 'Traversal module' -); - -foreach ($features as $key => $name) { - if (DOMImplementation::hasFeature($key, '2.0')) { - echo "Has feature $name\n"; - } else { - echo "Missing feature $name\n"; - } -} - -?> -]]> - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domnamednodemap-getnameditem.xml b/reference/dom/functions/dom-domnamednodemap-getnameditem.xml deleted file mode 100644 index 13f1088b8..000000000 --- a/reference/dom/functions/dom-domnamednodemap-getnameditem.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - DOMNamedNodeMap->getNamedItem() - - Recupera un nodo indicandone il nome - - - - &reftitle.description; - - DOMNamedNodeMap - - DOMNodegetNamedItem - stringname - - - - Recupera il nodo indicato da nodeName. - - - - &reftitle.parameters; - - - - name - - - Il nome del nodo da cercare. - - - - - - - - &reftitle.returnvalues; - - Il nodo (di qualsiasi tipo) con il nome richiesto, oppure - &null; se non viene trovato. - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domnamednodemap-getnameditemns.xml b/reference/dom/functions/dom-domnamednodemap-getnameditemns.xml deleted file mode 100644 index 037a0ffb9..000000000 --- a/reference/dom/functions/dom-domnamednodemap-getnameditemns.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - DOMNamedNodeMap->getNamedItemNS() - - Recupera un nodo indicando il nome locale e l'URI dello spazio dei nomi - - - - &reftitle.description; - - DOMNamedNodeMap - - DOMNodegetNamedItemNS - stringnamespaceURI - stringlocalName - - - - Recupera il nodo indicato da localName e - namespaceURI. - - - - &reftitle.parameters; - - - - namespaceURI - - - URI dello spazio dei nomi del nodo da cercare - - - - - localName - - - Nome locale del nodo da cercare. - - - - - - - - &reftitle.returnvalues; - - Un nodo (di qualsiasi tipo) con il nome locale ed l'URI dello spazio dei nomi richiesti, - oppure &null; se non viene trovato nulla. - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domnamednodemap-item.xml b/reference/dom/functions/dom-domnamednodemap-item.xml deleted file mode 100644 index 04b920e9d..000000000 --- a/reference/dom/functions/dom-domnamednodemap-item.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - DOMNamedNodeMap->item() - Recupera un nodo tramite il suo indice - - - &reftitle.description; - - DOMNamedNodeMap - - DOMNodeitem - intindex - - - - Recupera un nodo tramite l'indice index all'interno dell'oggetto - DOMNamedNodeMap. - - - - &reftitle.parameters; - - - - index - - - Indice all'interno della tabella. - - - - - - - - &reftitle.returnvalues; - - Il nodo alla posizione indexnella tabella, oppure &null; - se non si tratta di un indice valido (maggiore o uguale al numero dei nodi - in questa tabella). - - - - - diff --git a/reference/dom/functions/dom-domnode-appendchild.xml b/reference/dom/functions/dom-domnode-appendchild.xml deleted file mode 100644 index e9622d9d8..000000000 --- a/reference/dom/functions/dom-domnode-appendchild.xml +++ /dev/null @@ -1,135 +0,0 @@ - - - - - DOMNode->appendChild() - - Aggiunge un nuovo nodo figlio alla fine dei nodi figli - - - - &reftitle.description; - - DOMNode - - DOMNodeappendChild - DOMNodenewnode - - - - Questa funzione accoda un nodo figlio ad una lista esistente di nodi figlio oppure - crea una nuova lista. Il nodo figlio può essere creato, ad esempio, con , - ecc. oppure semplicemente utilizzando un'altro nodo. - - - - &reftitle.parameters; - - - - newnode - - - Il nodo figlio da aggiungere. - - - - - - - - &reftitle.returnvalues; - - Il nodo aggiunto. - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se questo nodo è in sola lettura, oppure se il nodo genitore del nodo - da inserire è in sola lettura. - - - - - DOM_HIERARCHY_REQUEST_ERR - - - Generato se questo nodo è del tipo che non ammette figli del tipo di - newnode, oppure se il nodo da aggiungere - è uno dei genitori del nodi o di se stesso. - - - - - DOM_WRONG_DOCUMENT_ERR - - - Generato se newnode è stato creato in un documento differente - rispetto al nodo che crea questo. - - - - - - - - &reftitle.examples; - - Nel seguente esempio si aggiunge un nuovo nodo elemento ad un documento. - - Aggiunta di un nodo figlio - -createElement("para"); -$newnode = $doc->appendChild($node); - -echo $doc->saveXML(); -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/dom/functions/dom-domnode-clonenode.xml b/reference/dom/functions/dom-domnode-clonenode.xml deleted file mode 100644 index 8748bbc7c..000000000 --- a/reference/dom/functions/dom-domnode-clonenode.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - DOMNode->cloneNode() - - Clona un nodo - - - - &reftitle.description; - - DOMNode - - DOMNodecloneNode - booldeep - - - - Crea una copia di un nodo. - - - - &reftitle.parameters; - - - - deep - - - Indica se occorre copiare tutti i nodi sottostanti. Questo parametro, - opzionale, ha come default &false;. - - - - - - - - &reftitle.returnvalues; - - Il nodo clonato. - - - - - diff --git a/reference/dom/functions/dom-domnode-hasattributes.xml b/reference/dom/functions/dom-domnode-hasattributes.xml deleted file mode 100644 index fc3718ce3..000000000 --- a/reference/dom/functions/dom-domnode-hasattributes.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - DOMNode->hasAttributes() - - Verifica se un nodo ha degli attributi - - - - &reftitle.description; - - DOMNode - - boolhasAttributes - - - - - Questa funzione verifica se un nodo ha degli attributi. Il nodo verificato deve essere - di tipo XML_ELEMENT_NODE. - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domnode-haschildnodes.xml b/reference/dom/functions/dom-domnode-haschildnodes.xml deleted file mode 100644 index 2b126996a..000000000 --- a/reference/dom/functions/dom-domnode-haschildnodes.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - DOMNode->hasChildNodes() - - Verifica se un nodo ha nodi figli - - - - &reftitle.description; - - DOMNode - - boolhasChildNodes - - - - - Questa funzione verifica se un nodo ha nodi figli. - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domnode-insertbefore.xml b/reference/dom/functions/dom-domnode-insertbefore.xml deleted file mode 100644 index bd0b130c4..000000000 --- a/reference/dom/functions/dom-domnode-insertbefore.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - - DOMNode->insertBefore() - - Aggiunge un nuovo nodo figlio prima del riferimento - - - - &reftitle.description; - - DOMNode - - DOMNodeinsertBefore - DOMNodenewnode - DOMNoderefnode - - - - Questa funzione inserisce un nuovo nodo prima del nodo di riferimento. - Se si prevede di fare ulteriori aggiunte al nodo aggiunto, utilizzare - il nodo restituito. - - - - &reftitle.parameters; - - - - newnode - - - Il nuovo nodo. - - - - - refnode - - - Nodo di riferimento. Se non viene fornito, newnode viene - accodato ai nodi figli. - - - - - - - - &reftitle.returnvalues; - - Il nodo inserito. - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se il nodo è in sola lettura o se il precedente nodo padre del - nodo da aggiungere è in sola lettura. - - - - - DOM_HIERARCHY_REQUEST_ERR - - - Generato se questo nodo è di un tipo che non permette l'aggiunta di nodi figli - del tipo di newnode, o se il nodo da aggiungere - è uno dei genitori di questo nodo, oppure se si tratta proprio di questo nodo. - - - - - DOM_WRONG_DOCUMENT_ERR - - - Generato se newnode è stato creato in un docuemnto differente - rispetto al documento in cui è sttao creato questo nodo. - - - - - DOM_NOT_FOUND - - - Generato se refnode non è un nodo figlio di questo nodo. - - - - - - - - - diff --git a/reference/dom/functions/dom-domnode-issamenode.xml b/reference/dom/functions/dom-domnode-issamenode.xml deleted file mode 100644 index 4f93d04aa..000000000 --- a/reference/dom/functions/dom-domnode-issamenode.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - DOMNode->isSameNode() - - Indica se due nodi sono il medesimo nodo - - - - &reftitle.description; - - DOMNode - - boolisSameNode - DOMNodenode - - - - Questa funzione indica se due nodi sono il medesimo nodo. - Il confronto NON è basato sul contenuto. - - - - &reftitle.parameters; - - - - node - - - Il nodo confrontato. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - - diff --git a/reference/dom/functions/dom-domnode-issupported.xml b/reference/dom/functions/dom-domnode-issupported.xml deleted file mode 100644 index 792ef02ae..000000000 --- a/reference/dom/functions/dom-domnode-issupported.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - DOMNode->isSupported() - - Verifica se una caratteristica è supportata dalla versione indicata - - - - &reftitle.description; - - DOMNode - - boolisSupported - stringfeature - stringversion - - - - Verifica se una feature è supportata dalla - version indicata. - - - - &reftitle.parameters; - - - - feature - - - Caratteristica da verificare. Vedere l'esempio di - per avere l'elenco - delle caratteristiche. - - - - - version - - - Numero di versione della feature da verificare. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domnode-lookupnamespaceuri.xml b/reference/dom/functions/dom-domnode-lookupnamespaceuri.xml deleted file mode 100644 index 6b9a37d17..000000000 --- a/reference/dom/functions/dom-domnode-lookupnamespaceuri.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - DOMNode->lookupNamespaceURI() - - Restituisce l'URI dello spazio dei nomi in base al prefisso - - - - &reftitle.description; - - DOMNode - - stringlookupNamespaceURI - stringprefix - - - - Restituisce l'URI dello spazio dei nomi del nodo in base al prefisso - prefix. - - - - &reftitle.parameters; - - - - prefix - - - Prefisso dello spazio dei nomi - - - - - - - - &reftitle.returnvalues; - - URI dello spazio dei nomi del nodo. - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domnode-lookupprefix.xml b/reference/dom/functions/dom-domnode-lookupprefix.xml deleted file mode 100644 index 51333a517..000000000 --- a/reference/dom/functions/dom-domnode-lookupprefix.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - DOMNode->lookupPrefix() - - Resituisce il prefisso dello spazio dei nomi in base all'URI dello spazio dei nomi - - - - &reftitle.description; - - DOMNode - - stringlookupPrefix - stringnamespaceURI - - - - Resituisce il prefisso dello spazio dei nomi in base all'URI dello spazio dei nomi. - - - - &reftitle.parameters; - - - - namespaceURI - - - URI dello spazio dei nomi. - - - - - - - - &reftitle.returnvalues; - - Il prefisso dello spazio dei nomi. - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domnode-normalize.xml b/reference/dom/functions/dom-domnode-normalize.xml deleted file mode 100644 index 198407683..000000000 --- a/reference/dom/functions/dom-domnode-normalize.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - DOMNode->normalize() - - Normalizza un nodo - - - - &reftitle.description; - - DOMNode - - voidnormalize - - - - - Normalizza il nodo. - - - - &reftitle.returnvalues; - - &return.void; - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domnode-removechild.xml b/reference/dom/functions/dom-domnode-removechild.xml deleted file mode 100644 index ada41edfd..000000000 --- a/reference/dom/functions/dom-domnode-removechild.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - DOMNode->removeChild() - - Rimuove un nodo figlio dalla lista dei nodi figli - - - - &reftitle.description; - - DOMNode - - DOMNoderemoveChild - DOMNodeoldnode - - - - Questa funzione rimuove un nodo figlio dalla lista dei nodi figli. - - - - &reftitle.parameters; - - - - oldnode - - - Il nodo rimosso. - - - - - - - - &reftitle.returnvalues; - - Se si riesce a rimuovere il nodo figlio, la funzione restituisce il vecchio nodo figlio. - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se il nodo è in sola lettura. - - - - - DOM_NOT_FOUND - - - Generato se oldnode non è un figlio di questo nodo. - - - - - - - - &reftitle.examples; - - Nel seguente esempio si rimuoverà il nodo 'chapter' dal nostro documento XML. - - Rimozione di un nodo figlio - -load('book.xml'); - -$book = $doc->documentElement; - -// Cerchiamo il nodo e lo rimuoviamo -$chapter = $book->getElementsByTagName('chapter')->item(0); -$oldchapter = $book->removeChild($chapter); - -echo $doc->saveXML(); -?>]]> - - &example.outputs; - - - - - My lists - - -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/dom/functions/dom-domnode-replacechild.xml b/reference/dom/functions/dom-domnode-replacechild.xml deleted file mode 100644 index 40f82155b..000000000 --- a/reference/dom/functions/dom-domnode-replacechild.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - DOMNode->replaceChild() - - Sostituisce un nodo figlio - - - - &reftitle.description; - - DOMNode - - DOMNodereplaceChild - DOMNodenewnode - DOMNodeoldnode - - - - Questa funzione sostituisce il nodo figlio oldnode - con il nuovo nodo fornito. Se il nuovo nodo è già un nodo figlio, questo - non verrà inserito una seconda volta. Se la sostituzione ha avuto successo, - la funzione restituisce il vecchio nodo. - - - - &reftitle.parameters; - - - - newnode - - - Il nuovo nodo. Deve essere membro del docuemnto di destinazione, ad esempio - creato da uno dei metodi DOMDocument->createXXX() oppure importato - nel documento con . - - - - - oldnode - - - Il vecchio nodo. - - - - - - - - &reftitle.returnvalues; - - Il vecchio nodo oppure &false; in caso di errore. - - - - &reftitle.exceptions; - - - - DOM_NO_MODIFICATION_ALLOWED_ERR - - - Generato se questo nodo è in sola lettura oppure se il precdente padre del nodo da - inserire è in sola lettura. - - - - - DOM_HIERARCHY_REQUEST_ERR - - - Generato se il nodo è di un tipo che non ammette nodi figli del - tipo di newnode, oppure se il nodo da inserire - è uno dei padri del nodo, oppure se è il nodo stesso. - - - - - DOM_WRONG_DOCUMENT_ERR - - - Generato se newnode è stato creato in un - docuemnto differente rispetto al documento in cui è stato creato il nodo. - - - - - DOM_NOT_FOUND - - - Generato se oldnode non è figlio del nodo. - - - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/dom/functions/dom-domnodelist-item.xml b/reference/dom/functions/dom-domnodelist-item.xml deleted file mode 100644 index 4f0c61397..000000000 --- a/reference/dom/functions/dom-domnodelist-item.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - DOMNodelist->item() - - Recupera il nodo indicato dall'indice - - - - &reftitle.description; - - DOMNodeList - - DOMNodeitem - intindex - - - - Trova il nodo indicato dall'indice index all'interno - di un oggetto DOMNodeList. - - - - Se occorre conoscere il numero di nodi di una collezzione utilizzare - la prorpietà length dell'oggetto - DOMNodeList. - - - - - &reftitle.parameters; - - - - index - - - Indice del nodo nella collezione. - - - - - - - - &reftitle.returnvalues; - - Il nodo alla posizione index in - DOMNodeList, oppure &null; se non è un - indice valido. - - - - &reftitle.examples; - - - Attraversamento di tutti gli elementi di una tabella - -load('book.xml'); - -$items = $doc->getElementsByTagName('entry'); - -for ($i = 0; $i < $items->length; $i++) { - echo $items->item($i)->nodeValue . "\n"; -} - -?> -]]> - - - Oppure si può utilizzare foreach, che è molto pratico: - - -nodeValue . "\n"; -} - -?> -]]> - - &example.outputs; - - - - - - - - - diff --git a/reference/dom/functions/dom-domprocessinginstruction-construct.xml b/reference/dom/functions/dom-domprocessinginstruction-construct.xml deleted file mode 100644 index 66e4dbd69..000000000 --- a/reference/dom/functions/dom-domprocessinginstruction-construct.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - DOMProcessingInstruction->__construct() - - Crea un nuovo oggetto DOMProcessingInstruction - - - - &reftitle.description; - - DOMProcessingInstruction - - __construct - stringname - stringvalue - - - - Crea un nuovo oggetto DOMProcessingInstruction. Questo oggetto è in sola lettura. - Può essere aggiunto al documento, ma non possono essere inseriti nodi aggiuntivi fino a quando - il nodo è associato al documento. Per creare un nodo modificabile utilizzare - . - - - - &reftitle.parameters; - - - - name - - - Nome del tag dell'istruzione di processamento. - - - - - value - - - Valore dell'istruzione di processamento. - - - - - - - - &reftitle.examples; - - - Creazione di un nuovo DOMProcessingInstruction - -appendChild(new DOMElement('html')); -$body = $html->appendChild(new DOMElement('body')); -$pinode = new DOMProcessingInstruction('php', 'echo "Hello World"; '); -$body->appendChild($pinode); -echo $dom->saveXML(); /* - */ - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domtext-construct.xml b/reference/dom/functions/dom-domtext-construct.xml deleted file mode 100644 index a3ae098bb..000000000 --- a/reference/dom/functions/dom-domtext-construct.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - DOMText->__construct() - - Crea un nuovo oggetto DOMText - - - - &reftitle.description; - - DOMText - - __construct - stringvalue - - - - Crea un nuovo oggetto DOMText. - - - - &reftitle.parameters; - - - - value - - - Valore del nodo di testo. Se non fornito, sarà creato un nodo con il testo vuoto. - - - - - - - - &reftitle.examples; - - - Creazione di un nuovo DOMText - -appendChild(new DOMElement('root')); -$text = $element->appendChild(new DOMText('root value')); -echo $dom->saveXML(); /* root value */ - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domtext-iswhitespaceinelementcontent.xml b/reference/dom/functions/dom-domtext-iswhitespaceinelementcontent.xml deleted file mode 100644 index 7f5dbbaf8..000000000 --- a/reference/dom/functions/dom-domtext-iswhitespaceinelementcontent.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - DOMText->isWhitespaceInElementContent() - - Indica se questo nodo di testo contiene spazi - - - - &reftitle.description; - - DOMText - - boolisWhitespaceInElementContent - - - - - Indica se questo nodo di testo contiene spazi. Si determina se un nodo - di testo contiene spazi durante la fase di caricamento del - documento. - - - - &reftitle.returnvalues; - - &return.success; - - - - - diff --git a/reference/dom/functions/dom-domtext-splittext.xml b/reference/dom/functions/dom-domtext-splittext.xml deleted file mode 100644 index 8b071be77..000000000 --- a/reference/dom/functions/dom-domtext-splittext.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - DOMText->splitText() - - Spezza il nodo in due all'offset specificato - - - - &reftitle.description; - - DOMText - - DOMTextsplitText - intoffset - - - - Spezza questo nodo in due all'offset indicato, - mantenendo entrambi nell'albero come nodi fratelli. - - - Dopo la divisione, questo nodo conterrà tutto il testo fino a - offset. Se il nodo originale ha - un nodo genitore, allora il nuovo nodo sarà inserito come successivo al nodo originale. - Nel caso in cui offset sia uguale alla lunghezza del nodo, - il nuovo nodo non conterrà dati. - - - - &reftitle.parameters; - - - - offset - - - Offset al quale dividere, a partire da 0. - - - - - - - - &reftitle.returnvalues; - - Il nuovo nodo, del medesimo tipo, avrà tutto il contenuto a partire da - offset. - - - - - diff --git a/reference/dom/functions/dom-domxpath-construct.xml b/reference/dom/functions/dom-domxpath-construct.xml deleted file mode 100644 index f4100aa6e..000000000 --- a/reference/dom/functions/dom-domxpath-construct.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - DOMXPath->__construct() - - Crea un nuovo oggetto DOMXPath - - - - &reftitle.description; - - DOMXPath - - __construct - DOMDocumentdoc - - - - Crea un nuovo oggetto DOMXPath. - - - - &reftitle.parameters; - - - - doc - - - L'oggetto DOMDocument associato a - DOMXPath. - - - - - - - - - diff --git a/reference/dom/functions/dom-domxpath-evaluate.xml b/reference/dom/functions/dom-domxpath-evaluate.xml deleted file mode 100644 index 751df5aca..000000000 --- a/reference/dom/functions/dom-domxpath-evaluate.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - DOMXPath->evaluate() - - Valuta l'espressione XPath data e restituisce un risultato se possibile - - - - &reftitle.description; - - DOMXPath - - mixedevaluate - stringexpression - DOMNodecontextnode - - - - Esegue l'espressione XPath data e - restituisce un risultato se possibile - - - - &reftitle.parameters; - - - - expression - - - L'espressione XPath da eseguire. - - - - - contextnode - - - Il parametro opzinale contextnode serve per indicare di - eseguire query XPath relative. Per default le query sono relative all'elemento - radice. - - - - - - - - &reftitle.returnvalues; - - Restituisce un risultato oppure un oggetto DOMNodeList - contenente tutti i nodi che soddisfano la query XPath . - - - - &reftitle.examples; - - - Ottenere il numero dei libri inglesi - -load('book.xml'); - -$xpath = new DOMXPath($doc); - -$tbody = $doc->getElementsByTagName('tbody')->item(0); - -// query relativa ai nodi tbody -$query = 'count(row/entry[. = "en"])'; - -$entries = $xpath->evaluate($query, $tbody); -echo "There are $entries english books\n"; - -?> -]]> - - &example.outputs; - - - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domxpath-query.xml b/reference/dom/functions/dom-domxpath-query.xml deleted file mode 100644 index b3df38f59..000000000 --- a/reference/dom/functions/dom-domxpath-query.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - DOMXPath->query() - - Valuta l'espressione XPath - - - - &reftitle.description; - - DOMXPath - - DOMNodeListquery - stringexpression - DOMNodecontextnode - - - - Esegue la query XPath data. - - - - &reftitle.parameters; - - - - expression - - - La query XPath da eseguire. - - - - - contextnode - - - Il parametro opzinale contextnode serve per indicare di - eseguire query XPath relative. Per default le query sono relative all'elemento - radice. - - - - - - - - &reftitle.returnvalues; - - Restituisce un oggetto DOMNodeList contenente tutti i nodi che soddisfano la condizione - expression. Qualsiasi espressione che non restituisce nodi - creerà un DOMNodeList vuoto. - - - - &reftitle.examples; - - - Ottenere il numero dei libri inglesi - -preserveWhiteSpace = false; - -$doc->Load('book.xml'); - -$xpath = new DOMXPath($doc); - -// Partiamo dell'elemento radice -$query = '//book/chapter/para/informaltable/tgroup/tbody/row/entry[. = "en"]'; - -$entries = $xpath->query($query); - -foreach ($entries as $entry) { - echo "Found {$entry->previousSibling->previousSibling->nodeValue}," . - " by {$entry->previousSibling->nodeValue}\n"; -} -?> -]]> - - &example.outputs; - - - - - Possiamo utilizzare il parametro contextnode per ridurre - l'espressione: - - -preserveWhiteSpace = false; - -$doc->load('book.xml'); - -$xpath = new DOMXPath($doc); - -$tbody = $doc->getElementsByTagName('tbody')->item(0); - -// query relativa ai nodi tbody -$query = 'row/entry[. = "en"]'; - -$entries = $xpath->query($query, $tbody); - -foreach ($entries as $entry) { - echo "Found {$entry->previousSibling->previousSibling->nodeValue}," . - " by {$entry->previousSibling->nodeValue}\n"; -} -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/dom/functions/dom-domxpath-registernamespace.xml b/reference/dom/functions/dom-domxpath-registernamespace.xml deleted file mode 100644 index edfaf6c5a..000000000 --- a/reference/dom/functions/dom-domxpath-registernamespace.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - DOMXPath->registerNamespace() - - Registra lo spazio dei nomi nell'oggetto DOMXpath - - - - &reftitle.description; - - DOMXPath - - boolregisterNamespace - stringprefix - stringnamespaceURI - - - - Registra lo spazio dei nomi namespaceURI e - prefix nell'oggetto DOMXpath. - - - - &reftitle.parameters; - - - - prefix - - - Il prefisso. - - - - - namespaceURI - - - URI dello spazio dei nomi. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - - diff --git a/reference/dom/functions/dom-import-simplexml.xml b/reference/dom/functions/dom-import-simplexml.xml deleted file mode 100644 index fbc54795c..000000000 --- a/reference/dom/functions/dom-import-simplexml.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - dom_import_simplexml - - Ottiene un oggetto DOMElement da un - oggetto SimpleXMLElement - - - - &reftitle.description; - - DOMElementdom_import_simplexml - SimpleXMLElementnode - - - Questa funzione prende il nodo node della classe - SimpleXML e lo rende un nodo - DOMElement. Dopo questo nuovo oggetto può essere usato - come un nodo nativo DOMElement. - - - - &reftitle.parameters; - - - - node - - - Il nodo SimpleXMLElement. - - - - - - - - &reftitle.returnvalues; - - Il nodo DOMElement aggiunto o &false; se si verificano errori. - - - - &reftitle.examples; - - Importare SimpleXML nel DOM con <function>dom_import_simplexml</function> - -blah'); - -if ($sxe === false) { - echo 'Error while parsing the document'; - exit; -} - -$dom_sxe = dom_import_simplexml($sxe); -if (!$dom_sxe) { - echo 'Error while converting XML'; - exit; -} - -$dom = new DOMDocument('1.0'); -$dom_sxe = $dom->importNode($dom_sxe, true); -$dom_sxe = $dom->appendChild($dom_sxe); - -echo $dom->saveXML(); - -?> -]]> - - - - - &reftitle.seealso; - - - simplexml_import_dom - - - - - - diff --git a/reference/dom/reference.xml b/reference/dom/reference.xml deleted file mode 100644 index ebbb0b14b..000000000 --- a/reference/dom/reference.xml +++ /dev/null @@ -1,1402 +0,0 @@ - - - - - - - &Functions; DOM - - -
- &reftitle.intro; - - L'estensione DOM extension permette di agire sui documenti XML attraverso la DOM - API di PHP 5. - - - Con PHP 4, utilizzare DOM XML. - - - - L'estensione DOM utilizza la codifica UTF-8. Usare utf8_encode - e utf8_decode per lavorare su testi codificati in ISO-8859-1 - oppure Iconv per altre codifiche. - - -
- -
- &reftitle.install; - &no.install; -
- -
- &reftitle.classes; - - L'API del modulo segue lo standard DOM Level 3 il più fedelmente - possibile. Di conseguenza, l'API è completamente object-oriented. - È consigliabile consultare una copia dello standard DOM quando - si utilizza questo modulo. - - - Questo modulo definisce un certo numero di classi, che sono illustrate nelle - tabelle seguenti. Le classi con un equivalente nello standard DOM sono - chiamate DOMxxx. - - -
- <classname>DOMAttr</classname> - - Estende DOMNode. L'interfaccia DOMAttr - rappresenta un attributo in un oggetto DOMElement. - -
- &reftitle.constructor; - - - - inizializza un nuovo oggetto DOMAttr - - -
-
- &reftitle.methods; - - - - Controlla se l'attribute è un ID definito - - -
-
- &reftitle.properties; - - - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>si</entry> - <entry>Il nome dell'attributo</entry> - </row> - <row> - <entry>ownerElement</entry> - <entry>DOMElement</entry> - <entry>si</entry> - <entry>L'elemento che contiene l'attributo</entry> - </row> - <row> - <entry>schemaTipoInfo</entry> - <entry>bool</entry> - <entry>si</entry> - <entry>Non ancora implementato, restituisce sempre &null;</entry> - </row> - <row> - <entry>specified</entry> - <entry>bool</entry> - <entry>si</entry> - <entry>Non ancora implementato, restituisce sempre &null;</entry> - </row> - <row> - <entry>value</entry> - <entry>string</entry> - <entry>no</entry> - <entry>Il valore dell'attributo</entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domcharacterdata"> - <title><classname>DOMCharacterData</classname> - - Estende DOMNode. - -
- &reftitle.methods; - - - - Aggiunge una stringa alla fine dei dati del nodo - - - - Cancella dei caratteri da un nodo - - - - Inserisce una stringa alla posizione (a 16 bit) specificata - - - - Sostituisce una sottostringa nel nodo DOMCharacterData - - - - Estrae una parte di dati dal nodo - - -
-
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>data</entry> - <entry>string</entry> - <entry>no</entry> - <entry>Il contenuto del nodo</entry> - </row> - <row> - <entry>length</entry> - <entry>int</entry> - <entry>yes</entry> - <entry>La lunghezza del contenuto</entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domcomment"> - <title><classname>DOMComment</classname> - - Estende DOMCharacterData. - -
- &reftitle.constructor; - - - - inizializza un nuovo oggetto DOMComment - - -
- - -
- <classname>DOMDocument</classname> - - Estende DOMNode. - -
- &reftitle.constructor; - - - - inizializza un nuovo oggetto DOMDocument - - -
-
- &reftitle.methods; - - - - Crea un nuovo attributo - - - - Crea un nuovo attributo con un namespace associato - - - - Crea un nuovo nodo cdata - - - - Crea un nuovo nodo commento - - - - Crea un nuovo frammento di documento - - - - Crea un nuovo nodo elemento - - - - Crea un nuovo nodo elemento con un namespace associato - - - - Crea un nuovo nodo riferimento d'entità - - - - Crea un nuovo nodo PI - - - - Crea un nuovo nodo di testo - - - - Cerca un elemento con un determinato identificativo - - - - Cerca tutti gli elementi con un determinato nome di tag - - - - Cerca tutti gli elementi con un determinato nome di tag in uno specifico namespace - - - - Importa il nodo nel documento attuale - - - - Carica del XML da un file - - - - Carica del HTML da una stringa - - - - Carica del HTML da un file - - - - Carica del XML da una stringa - - - - Normalizza il documento - - - - Effettua una validazione relaxNG sul documento - - - - Effettua una validazione relaxNG sul documento - - - - Registra la classe estesa utilizzata per creare il tipo di base del nodo (non fa parte dello standard DOM) - - - - Salva l'arborescenza XML interna in un file - - - - Salva il documento interno in una stringa usando la formattazione HTML - - - - Salva il documento interno in un file usando la formattazione HTML - - - - Salva l'arborescenza XML interna in una stringa - - - - Valida un documento rispetto ad uno schema - - - - Valida un documento rispetto ad uno schema - - - - Valida un documento rispetto al suo DTD - - - - Sostituisce gli XInclude in un oggetto DOMDocument - - -
-
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Solo lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>actualEncoding</entry> - <entry>string</entry> - <entry>si</entry> - <entry></entry> - </row> - <row> - <entry>config</entry> - <entry>DOMConfiguration</entry> - <entry>si</entry> - <entry></entry> - </row> - <row> - <entry>doctype</entry> - <entry>DOMDocumentType</entry> - <entry>si</entry> - <entry> - Il DTD (Document Tipo Declaration) associato a questo documento. - </entry> - </row> - <row> - <entry>documentElement</entry> - <entry>DOMElement</entry> - <entry>si</entry> - <entry> - Questo è un attributo di convenienza che permette l'accesso diretto al - nodo figlio che è il nodo documento del documento. - </entry> - </row> - <row> - <entry>documentURI</entry> - <entry>string</entry> - <entry>no</entry> - <entry> - L'indirizzo del documento o &null; se non definito. - </entry> - </row> - <row> - <entry>encoding</entry> - <entry>string</entry> - <entry>no</entry> - <entry></entry> - </row> - <row> - <entry>formatOutput</entry> - <entry>bool</entry> - <entry>no</entry> - <entry></entry> - </row> - <row> - <entry>implementation</entry> - <entry>DOMImplementation</entry> - <entry>si</entry> - <entry> - L'oggetto <classname>DOMImplementation</classname> che gestisce - questo documento. - </entry> - </row> - <row> - <entry>preserveWhiteSpace</entry> - <entry>bool</entry> - <entry>no</entry> - <entry>Non rimuovere gli spazi bianchi ridondanti. Il default &true;.</entry> - </row> - <row> - <entry>recover</entry> - <entry>bool</entry> - <entry>no</entry> - <entry></entry> - </row> - <row> - <entry>resolveExternals</entry> - <entry>bool</entry> - <entry>no</entry> - <entry> - impostarlo a &true; per caricare le entità esterne da una dichiarazione - doctype. Questo è utile per includere le entità carattere nel - documento XML. - </entry> - </row> - <row> - <entry>standalone</entry> - <entry>bool</entry> - <entry>no</entry> - <entry></entry> - </row> - <row> - <entry>strictErrorChecking</entry> - <entry>bool</entry> - <entry>no</entry> - <entry>Genera un DOMException in caso di errore. Il default è &true;.</entry> - </row> - <row> - <entry>substituteEntities</entry> - <entry>bool</entry> - <entry>no</entry> - <entry></entry> - </row> - <row> - <entry>validateOnParse</entry> - <entry>bool</entry> - <entry>no</entry> - <entry>Carica e valida rispetto al DTD. Il default è &false;.</entry> - </row> - <row> - <entry>version</entry> - <entry>string</entry> - <entry>no</entry> - <entry></entry> - </row> - <row> - <entry>xmlEncoding</entry> - <entry>string</entry> - <entry>yes</entry> - <entry> - Un attributo che specifica, come parte della dichiarazione XML, la - codifica di questo documento. È &null; quando non specificato o quando è - sconosciuto, such as when the Document was created in memory. - </entry> - </row> - <row> - <entry>xmlStandalone</entry> - <entry>bool</entry> - <entry>no</entry> - <entry> - Un attributo che specifica, come parte della dichiarazione XML, se - questo documento è standalone: È &false; quando non specificato. - </entry> - </row> - <row> - <entry>xmlVersion</entry> - <entry>string</entry> - <entry>no</entry> - <entry> - Un attributo che specifica, come parte della dichiarazione XML, il - numero di versione di questo documento. Se non c'è dichiarazione e se - questo documento supporta la caratteristica "XML", il valore è "1.0". - </entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domdocumentfragment"> - <title><classname>DOMDocumentFragment</classname> - - Estende DOMNode. - -
- &reftitle.methods; - - - - Accoda i dati XML grezzi (non fa parte dello standard DOM) - - -
- - -
- <classname>DOMDocumentTipo</classname> - - Estende DOMNode - - - Ogni DOMDocument ha un - attributo doctype il cui valore è &null; oppure un - oggetto DOMDocumentTipo. - -
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>publicId</entry> - <entry>string</entry> - <entry>si</entry> - <entry>L'identificativo pubblico del subset esterno.</entry> - </row> - <row> - <entry>systemId</entry> - <entry>string</entry> - <entry>yes</entry> - <entry>L'identificativo di sistema del subset esterno. Questo può essere una - URI assoluta.</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>si</entry> - <entry>Il nome del DTD; per esempio; il nome che segue immediatamente la - keyword <literal>DOCTYPE</literal>.</entry> - </row> - <row> - <entry>entities</entry> - <entry>DOMNamedNodeMap</entry> - <entry>si</entry> - <entry> - Un <classname>DOMNamedNodeMap</classname> che contiene le entità - generali, interne ed esterne, dichiarate nel DTD. - </entry> - </row> - <row> - <entry>notations</entry> - <entry>DOMNamedNodeMap</entry> - <entry>si</entry> - <entry> - Un <classname>DOMNamedNodeMap</classname> che contiene le notazioni - dichiarate nel DTD. - </entry> - </row> - <row> - <entry>internalSubset</entry> - <entry>string</entry> - <entry>si</entry> - <entry> - Il subset interno sotto forma di stringa; o &null; se non esiste. Questo - non contiene le parentesi quadre di delimitazione. - </entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domelement"> - <title><classname>DOMElement</classname> - - Estende DOMNode. - -
- &reftitle.constructor; - - - - inizializza un nuovo oggetto DOMElement - - -
-
- &reftitle.methods; - - - - Restituisce il valore dell'attributo - - - - Restituisce il nodo attributo - - - - Restituisce il nodo attributo - - - - Restituisce il valore dell'attributo - - - - Recupera gli elementi con un determinato nome di tag - - - - Recupera gli elementi con un determinato nome di tag in uno specifico namespaceURI - - - - Controlla se l'attributo esiste - - - - Controlla se l'attributo esiste - - - - Rimuove l'attributo - - - - Rimuove l'attributo - - - - Rimuove l'attributo - - - - Aggiunge un nuovo attributo - - - - Aggiunge un nuovo nodo attributo all'elemento - - - - Aggiunge un nuovo nodo attributo all'elemento - - - - Aggiunge un nuovo attributo - - - - Dichiara l'attributo identificativo - - - - Dchiara l'attributo identificativo - - - - Dichiara l'attributo identificativo - - -
-
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>schemaTypeInfo</entry> - <entry>bool</entry> - <entry>si</entry> - <entry>Non ancora implementato, restituisce sempre &null;</entry> - </row> - <row> - <entry>tagName</entry> - <entry>string</entry> - <entry>si</entry> - <entry>Il nome dell'elemento</entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domentity"> - <title><classname>DOMEntity</classname> - - Estende DOMNode - - - Questa interfaccia rappresenta una entità conosciuta, analizzata o non analizzata, in - un documento XML. - -
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>publicId</entry> - <entry>string</entry> - <entry>si</entry> - <entry> - L'identificativo pubblico associato all'entità se specificato, - oppure &null;. - </entry> - </row> - <row> - <entry>systemId</entry> - <entry>string</entry> - <entry>si</entry> - <entry> - L'identificativo di sistema associato all'entità se specificato, - altrimenti &null;. Può essere una URI assoluta. - </entry> - </row> - <row> - <entry>notationName</entry> - <entry>string</entry> - <entry>si</entry> - <entry> - Per le entità non analizzate, il nome della notazione dell'entità. Per - le entità analizzate, &null;. - </entry> - </row> - <row> - <entry>actualEncoding</entry> - <entry>string</entry> - <entry>no</entry> - <entry> - Un attributo che specifica la codifica usata per questa entità al - momento dell'analisi, quando è un'entità esterna analizzata. È - &null; se è un'entità dal subset interno o se non è - conosciuta. - </entry> - </row> - <row> - <entry>encoding</entry> - <entry>string</entry> - <entry>si</entry> - <entry> - An attribute specifying, as part of the text declaration, the - encoding of this entity, when it is an external parsed entity. This - is &null; otherwise. - </entry> - </row> - <row> - <entry>version</entry> - <entry>string</entry> - <entry>yes</entry> - <entry> - An attribute specifying, as part of the text declaration, the - version number of this entity, when it is an external parsed - entity. This is &null; otherwise. - </entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domentityreference"> - <title><classname>DOMEntityReference</classname> - - Estende DOMNode. - -
- &reftitle.constructor; - - - - inizializza un nuovo oggetto DOMEntityReference - - -
- - -
- <classname>DOMException</classname> - - Le operazioni DOM generano eccezioni in certi casi, ad esempio, - quando un'operazione non può essere eseguita per ragioni logiche. - - - Vedere anche . - -
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>code</entry> - <entry>int</entry> - <entry>si</entry> - <entry>Un intero che indica il tipo di errore generato</entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domimplementation"> - <title><classname>DOMImplementation</classname> - - L'interfaccia DOMImplementation fornisce - dei metodi per eseguire operazioni che sono indipendenti da una - particolare istanza del DOM. - -
- &reftitle.constructor; - - - - inizializza un nuovo oggetto DOMImplementation - - -
-
- &reftitle.methods; - - - - Crea un oggetto DOM Document del tipo specificato con il suo elemento document - - - - Crea un oggetto DOMDocumentType vuoto - - - - Controlla se l'implementazione DOM contiene una funzionalità specifica - - -
- - -
- <classname>DOMNamedNodeMap</classname> -
- &reftitle.methods; - - - - Retrieves a node specified by name - - - - Retrieves a node specified by local name and namespace URI - - - - Retrieves a node specified by index - - -
-
- - - -
- <classname>DOMNode</classname> -
- &reftitle.methods; - - - - Adds new child at the end of the children - - - - Clones a node - - - - Checks if node has attributes - - - - Checks if node has children - - - - Adds a - new child before a reference node - - - - Checks if the specified namespaceURI is - the default namespace - - - - Indicates if two nodes are the same node - - - - Checks if feature is supported for specified version - - - - Returns namespace URI of the node based on the prefix - - - - Returns name space prefix of the node based on namespaceURI - - - - Normalizes the node - - - - Removes child from list of children - - - - Replaces a child - - -
-
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>nodeName</entry> - <entry>string</entry> - <entry>yes</entry> - <entry>Returns the most accurate name for the current node type</entry> - </row> - <row> - <entry>nodeValue</entry> - <entry>string</entry> - <entry>no</entry> - <entry>The value of this node, depending on its type.</entry> - </row> - <row> - <entry>nodeType</entry> - <entry>int</entry> - <entry>yes</entry> - <entry>Gets the type of the node. One of the predefined XML_xxx_NODE constants</entry> - </row> - <row> - <entry>parentNode</entry> - <entry>DOMNode</entry> - <entry>yes</entry> - <entry>The parent of this node.</entry> - </row> - <row> - <entry>childNodes</entry> - <entry>DOMNodeList</entry> - <entry>yes</entry> - <entry> - A <classname>DOMNodeList</classname> that contains all children of - this node. If there are no children, this is an empty - <classname>DOMNodeList</classname>. - </entry> - </row> - <row> - <entry>firstChild</entry> - <entry>DOMNode</entry> - <entry>yes</entry> - <entry> - The first child of this node. If there is no such node, this - returns &null;. - </entry> - </row> - <row> - <entry>lastChild</entry> - <entry>DOMNode</entry> - <entry>yes</entry> - <entry> - The last child of this node. If there is no such node, this returns - &null;. - </entry> - </row> - <row> - <entry>previousSibling</entry> - <entry>DOMNode</entry> - <entry>yes</entry> - <entry> - The node immediately preceding this node. If there is no such node, - this returns &null;. - </entry> - </row> - <row> - <entry>nextSibling</entry> - <entry>DOMNode</entry> - <entry>yes</entry> - <entry> - The node immediately following this node. If there is no such node, - this returns &null;. - </entry> - </row> - <row> - <entry>attributes</entry> - <entry>DOMNamedNodeMap</entry> - <entry>yes</entry> - <entry> - A <classname>DOMNamedNodeMap</classname> containing the attributes - of this node (if it is a <classname>DOMElement</classname>) or - &null; otherwise. - </entry> - </row> - <row> - <entry>ownerDocument</entry> - <entry>DOMDocument</entry> - <entry>yes</entry> - <entry> - The <classname>DOMDocument</classname> object associated with this - node. - </entry> - </row> - <row> - <entry>namespaceURI</entry> - <entry>string</entry> - <entry>yes</entry> - <entry> - The namespace URI of this node, or &null; if it is unspecified. - </entry> - </row> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>no</entry> - <entry> - The namespace prefix of this node, or &null; if it is unspecified. - </entry> - </row> - <row> - <entry>localName</entry> - <entry>string</entry> - <entry>yes</entry> - <entry> - Returns the local part of the qualified name of this node. - </entry> - </row> - <row> - <entry>baseURI</entry> - <entry>string</entry> - <entry>yes</entry> - <entry> - The absolute base URI of this node or &null; if the implementation - wasn't able to obtain an absolute URI. - </entry> - </row> - <row> - <entry>textContent</entry> - <entry>string</entry> - <entry>no</entry> - <entry> - This attribute returns the text content of this node and its - descendants. - </entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domnodelist"> - <title><classname>DOMNodeList</classname> - - - -
- &reftitle.methods; - - - - Retrieves a node specified by index - - -
-
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>length</entry> - <entry>int</entry> - <entry>yes</entry> - <entry> - The number of nodes in the list. The range of valid child node - indices is 0 to <literal>length - 1</literal> inclusive. - </entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domnotation"> - <title><classname>DOMNotation</classname> - - Estende DOMNode - -
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>publicId</entry> - <entry>string</entry> - <entry>yes</entry> - <entry></entry> - </row> - <row> - <entry>systemId</entry> - <entry>string</entry> - <entry>yes</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domprocessinginstruction"> - <title><classname>DOMProcessingInstruction</classname> - - Estende DOMNode. - -
- &reftitle.constructor; - - - - construct a new DOMProcessingInstruction object - - -
-
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>target</entry> - <entry>string</entry> - <entry>yes</entry> - <entry></entry> - </row> - <row> - <entry>data</entry> - <entry>string</entry> - <entry>no</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domtext"> - <title><classname>DOMText</classname> - - Estende DOMCharacterData. - -
- &reftitle.constructor; - - - - construct a new DOMText object - - -
-
- &reftitle.methods; - - - - Indicates whether this text node contains whitespace - - - - Breaks the node into two nodes at the specified offset - - -
-
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>wholeText</entry> - <entry>string</entry> - <entry>yes</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - <section xml:id="dom.class.domxpath"> - <title><classname>DOMXPath</classname> - - -
- &reftitle.constructor; - - - - construct a new DOMXPath object - - -
-
- &reftitle.methods; - - - - Registers the namespace with the DOMXpath object - - - - Evaluates the given XPath expression and returns a typed result if possible - - - - Evaluates the given XPath expression - - -
-
- &reftitle.properties; -
- - <tgroup cols="4"> - <thead> - <row> - <entry>Nome</entry> - <entry>Tipo</entry> - <entry>Sola lettura</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>document</entry> - <entry>DOMDocument</entry> - <entry></entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </section> - </section> - - </section> - - <section xml:id="dom.examples"> - &reftitle.examples; - <para> - Many examples in this reference require an XML file. We will use - <filename>book.xml</filename> that contains the following: - </para> - <para> - <example> - <title>book.xml - - - - - My lists - - My books - - - - - - Title - Author - Language - ISBN - - - - - The Grapes of Wrath - John Steinbeck - en - 0140186409 - - - The Pearl - John Steinbeck - en - 014017737X - - - Samarcande - Amine Maalouf - fr - 2253051209 - - - - - - - - -]]> - - - - - - - &reference.dom.constants; - - - -&reference.dom.entities.functions; - - From 28ab9a3b6dc4cce36b09fd561df84064953cd747 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Thu, 26 Feb 2026 17:44:29 +0100 Subject: [PATCH 2/2] Restore dom-import-simplexml.xml (still present in doc-en) --- .../dom/functions/dom-import-simplexml.xml | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 reference/dom/functions/dom-import-simplexml.xml diff --git a/reference/dom/functions/dom-import-simplexml.xml b/reference/dom/functions/dom-import-simplexml.xml new file mode 100644 index 000000000..fbc54795c --- /dev/null +++ b/reference/dom/functions/dom-import-simplexml.xml @@ -0,0 +1,107 @@ + + + + + + dom_import_simplexml + + Ottiene un oggetto DOMElement da un + oggetto SimpleXMLElement + + + + &reftitle.description; + + DOMElementdom_import_simplexml + SimpleXMLElementnode + + + Questa funzione prende il nodo node della classe + SimpleXML e lo rende un nodo + DOMElement. Dopo questo nuovo oggetto può essere usato + come un nodo nativo DOMElement. + + + + &reftitle.parameters; + + + + node + + + Il nodo SimpleXMLElement. + + + + + + + + &reftitle.returnvalues; + + Il nodo DOMElement aggiunto o &false; se si verificano errori. + + + + &reftitle.examples; + + Importare SimpleXML nel DOM con <function>dom_import_simplexml</function> + +blah'); + +if ($sxe === false) { + echo 'Error while parsing the document'; + exit; +} + +$dom_sxe = dom_import_simplexml($sxe); +if (!$dom_sxe) { + echo 'Error while converting XML'; + exit; +} + +$dom = new DOMDocument('1.0'); +$dom_sxe = $dom->importNode($dom_sxe, true); +$dom_sxe = $dom->appendChild($dom_sxe); + +echo $dom->saveXML(); + +?> +]]> + + + + + &reftitle.seealso; + + + simplexml_import_dom + + + + + +