public function setAttributeVar($variableName)
{
$element = $this->element->attributes->getNamedItem($variableName);
if ($element) {
$setter = 'set' . ucfirst($variableName);
$value = $element->nodeValue;
if (method_exists($this, $setter)) {
$this->{$setter}($value);
}
}
}