function __get($name)
{
if (isset($this->attr[$name])) {
return $this->convert_text($this->attr[$name]);
}
switch ($name) {
case 'outertext':
return $this->outertext();
case 'innertext':
return $this->innertext();
case 'plaintext':
return $this->text();
case 'xmltext':
return $this->xmltext();
default:
return array_key_exists($name, $this->attr);
}
}