godt, jeg gjorde det selv:
SQL = "SELECT table1.x, table2.z FROM table1
INNER JOIN table2 ON table1.ID = table2.SubID
FOR XML AUTO, XMLDATA";
og
DataSet data = new DataSet();
DbCommand cmd = conn.CreateCommand();
cmd.CommandText = SQL;
data.ReadXml(((System.Data.SqlClient.SqlCommand)cmd).ExecuteXmlReader(),
xmlReadMode.Fragment);
det er det