DOMDocument->createAttributeNS()

(no version information, might be only in CVS)

DOMDocument->createAttributeNS() --  Crea un nuovo nodo attributo con associato lo spazio dei nomi

Descrizione

class DOMDocument {

DOMAttr createAttributeNS ( string namespaceURI, string qualifiedName )

}

Questa funzione crea una nuova istanza della classe DOMAttr. This node will not show up in the document unless it is inserted with e.g. DOMNode->appendChild().

Elenco dei parametri

namespaceURI

L' URI dello spazio dei nomi.

qualifiedName

Il nome del tag e prefisso dell'attributo nella struttura prefix:tagname.

Valori restituiti

La nuova istanza di DOMAttr oppure FALSE se si verifica un errore.

Eccezioni

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.

Vedere anche:

DOMNode->appendChild()
DOMDocument->createAttribute()
DOMDocument->createCDATASection()
DOMDocument->createComment()
DOMDocument->createDocumentFragment()
DOMDocument->createElement()
DOMDocument->createElementNS()
DOMDocument->createEntityReference()
DOMDocument->createProcessingInstruction()
DOMDocument->createTextNode()