PHP Manual
DOMDocument->createAttributeNS()
(no version information, might be only in CVS)
DOMDocument->createAttributeNS() -- Create new attribute node with an associated namespaceDescription
class DOMDocument {DOMAttr createAttributeNS ( string namespaceURI, string qualifiedName )
}
This function creates a new instance of class DOMAttr. This node will not show up in the document unless it is inserted with e.g. DOMNode->appendChild().
Parameters
namespaceURIThe URI of the namespace.
qualifiedNameThe tag name and prefix of the attribute, as prefix:tagname.
Errors/Exceptions
- DOM_INVALID_CHARACTER_ERR
Raised if
qualifiedNamecontains an invalid character.- DOM_NAMESPACE_ERR
Raised if
qualifiedNameis a malformed qualified name, or ifqualifiedNamehas a prefix andnamespaceURIis NULL.
See Also
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




