Convert XML as text, external resource or file(s)