function __get($name)
{
switch ($name) {
default:
if ($attribute = $this->node->attributes->getNamedItem($name)) {
return $attribute->nodeValue;
}
if ($attribute = $this->node->attributes->getNamedItem(str_replace('_', '-', $name))) {
return $attribute->nodeValue;
}
return null;
}
}