added text xml support