(no version information, might be only in CVS)
DOMElement->setAttribute() -- Adds new attribute
说明
class
DOMElement {
bool
setAttribute ( string name, string value )
}
Sets an attribute with name name to the given
value. If the attribute does not exist, it will be created.