Convert <anyXML> to string and add unittest