Jan 20, 2006 #1 daNewfie Programmer Oct 14, 2004 258 CA how do I create an xml file based on information in my sql database table. I never used xml before, I hope this is possible. Craig
how do I create an xml file based on information in my sql database table. I never used xml before, I hope this is possible. Craig
Jan 23, 2006 #2 simonchristieis Programmer Jan 10, 2002 1,144 GB Sure - google "for xml explicit": example: select 1 as Tag, null as Parent, Foo as [Foo!1!Foo_e], Bar as [Bar!2!Bar_e!element] Union all select 2 as Tag, 1 as Parent, Foo as [Foo!1!Foo_e], Bar as [Bar!2!Bar_e!element] for xml explicit untested - sommat like that Upvote 0 Downvote
Sure - google "for xml explicit": example: select 1 as Tag, null as Parent, Foo as [Foo!1!Foo_e], Bar as [Bar!2!Bar_e!element] Union all select 2 as Tag, 1 as Parent, Foo as [Foo!1!Foo_e], Bar as [Bar!2!Bar_e!element] for xml explicit untested - sommat like that