DOMDocument->createAttribute()
(no version information, might be only in CVS)
DOMDocument->createAttribute() -- Create new attribute
説明
class
DOMDocument {
DOMAttr
createAttribute ( string name )
}
This function creates a new instance of class DOMAttr.
このノードは、DOMNode->appendChild() などで
挿入されない限り、ドキュメント内に現われません。
パラメータ
- name
The name of the attribute.
戻り値
The new DOMAttr or FALSE if an error occured.
例外
- DOM_INVALID_CHARACTER_ERR
Raised if name contains an invalid character.