datatype and language extraction from XML results is now working correctly