in reply to Re^2: Child contains attribute
in thread Child contains attribute

Well then, search for "metadata" nodes after you have found "text" node. And, then get the attributes.