$text = (( $elt->first_child( 'subelt') || 'Undef' )->first_child( 'subsubelt')||'Undef' )->text();