in reply to XML::Twig text issue

Just a quick suggestion: you could try to first cut_children from the twig object, then get the text.