DOMDocument->createAttributeNS

(no version information, might be only in CVS)

DOMDocument->createAttributeNS --  Create new attribute node with an associated namespace

Descrição

DOMAttr DOMDocument->createAttributeNS ( string namespaceURI, string qualifiedName)

This function returns a new instance of class DOMAttr. The tag name and prefix of the attribute is determined by the value of the passed parameter qualifiedName. The URI of the namespace is the value of namespaceURI. Este nó não será exibido no documento a não ser que ele seja inserido, por exemplo, com DOMNode->appendChild().

The return value is FALSE if an error occurred.

See also DOMDocument->createElementNS(), DOMNode->appendChild(), DOMDocument->createElement(), DOMDocument->createTextNode() and DOMDocument->createAttribute().