better way to print all XML docs for swift input file