added support for text and emma-xml