but I'm still having issues exporting query results to an XML file. Anyway you get the idea. It sounds like I need to use a sub query with FOR to handle formatting it into the proper hierarchy? Does ...