in reply to xml to csv

It converts it to xml the way I want to, but it only does a single line and then complains about garbage after the </class> tag.

Google XML JUNK AFTER TAG, basically it means you do not have XML (if it is not properly formatted XML, it is not XML).