Well I have NO IDEA how to do this... so I'll just admit my ignorance up front.Anyway I have some customer records that need to be sent off for mailing.The printing company takes XML files.They provided me with an XML Schema (.xsd file)I need to take the data in my table and export it to an .xml file to send off.I tried doing something like this at first:WITH XMLNAMESPACES (DEFAULT 'urn:blah.blah.blah...')SELECT *FROM(SELECT CONVERT(varchar, GetDate(),120) AS submit_date, '999999' AS client_billing_id, customers.FirstNm AS customer_first_name, customers.LastNm AS customer_last_name, .....blah...additional fields..FROM customers) As OffsetFOR XML RAW ('Customer'), ROOT('CustomerMailingList'), ELEMENTSNow that worked pretty well, it gave me a file that was formatted in what appeared to be the proper XML style, and I could save it and it "looked right".However, the printers said there were a few errors and sent back a .XSD schema file for me to use.Sounds great... but I haven't a clue on how to use it.I've seen a few articles on how to manage existing schemas and how to store data IN the database, but nothing on how to EXPORT data.As I understand it I just want to take data in my customers table and use the schema as a template / file mapping document to dump it out to XML.So... help? :)Thanks