private function parseAttributes($_node, $_namespace = 'tts')
{
$attributes = array();
foreach ($_node->attributes($_namespace, true) as $property => $value) {
$attributes[(string) $property] = (string) $value;
}
if ($_node->attributes('xml', true)->id) {
$attributes['id'] = (string) $_node->attributes('xml', true)->id;
}
return $attributes;
}