Shortcuts

xmwriter and dataset plus formating issues

I posted once under Getting Started and only getting one response after 5 days, I realized I should have posted the issue here. I am actually experiencing two issues, well one issue and one total lack of knowledge... well two lacks of knowledge.

My experience writting xml to this point has been extremely minimal, thus the getting started post. So here goes, hope I explain it well enough to make sence?

The first part (ordercust) is customer info that is provided through a web form. The second part of the xml document is the product or item information which I need to pul from a data set.... for each xml document, there will be only 1 ordercust entry and
as many orderitems as products put into there cart. It has to follow this format because it gets sucked into another system that I have no control over.

The second part of my issues is getting my output formated. Here is some of my code that does not do the job: