The "XML Workshop" series of articles by Jacob Sebastian (search this site for details, please) is a great start and covers the import of xml data as well as formatting relational data in xml format.
One link as a start:
http://www.sqlservercentral.com/articles/Miscellaneous/2996/