function __set($name, $value)
{
switch ($name) {
default:
if (!($attribute = $this->node->attributes->getNamedItem($name))) {
$attribute = $this->node->ownerDocument->createAttribute($name);
$this->node->appendChild($attribute);
}
$attribute->nodeValue = $value;
break;
}
}