engmebeed446,
There is probably not a single tool that will do exactly what you want, but there are some things that exist that will help.
Try Googling for "sql server for xml"
USE AdventureWorks2012
GO
SELECT Cust.CustomerID,
OrderHeader.CustomerID,
OrderHeader.SalesOrderID,
OrderHeader.Status
FROM Sales.Customer Cust
INNER JOIN Sales.SalesOrderHeader OrderHeader
ON Cust.CustomerID = OrderHeader.CustomerID
FOR XML AUTO
The "FOR XML" value in SQL Server will output a query in XML. There is a lot of functionality in this space if you look into it.
Good luck!
Hogan