Big performance improvement on buildXML()

Avoid multiple output buffer hits into deep loops!

Replaced multiple echo()s with much faster single echo(). Note use of commas instead of multiple string concatenation using "."

Our test server was always timing out, now it takes about 14 secs to generate the XML (about 500 products)