﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Brandon Forest  / Script SQL Table Schema as XML-XSD / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 09:04:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Script SQL Table Schema as XML-XSD</title><link>http://www.sqlservercentral.com/Forums/Topic799844-1398-1.aspx</link><description>Just a note, you can change the element names if necessary for obfuscation with aliases as well, for example:[code="sql"]SELECT TOP 0 [ID] = MemberAddrID    , [Address1] = Addr1    , [Address2] = Addr2    , [Address3] = Addr3    , [City]    , [State] = ST    , [Zipcode] = ZipcodeFROM dbo.MBR_ADDR AS [MEMBER_ADDRESS]FOR XML AUTO, XMLSCHEMA;[/code]You're not locked into just following table's structure, you can do this on views as well, nice to see this article since its something that a lot of people don't know about or don't think regularly about.</description><pubDate>Wed, 28 Oct 2009 10:03:55 GMT</pubDate><dc:creator>Brian W. Smith</dc:creator></item><item><title>Script SQL Table Schema as XML-XSD</title><link>http://www.sqlservercentral.com/Forums/Topic799844-1398-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/XML/68390/"&gt;Script SQL Table Schema as XML-XSD&lt;/A&gt;[/B]</description><pubDate>Thu, 08 Oct 2009 04:12:44 GMT</pubDate><dc:creator>Brandon Forest</dc:creator></item></channel></rss>