|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Saturday, May 11, 2013 8:17 AM
Points: 460,
Visits: 2,521
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, April 06, 2012 4:14 AM
Points: 1,
Visits: 26
|
|
I like this. Very cool and useful.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, July 03, 2007 2:46 AM
Points: 1,
Visits: 1
|
|
Very very informative and good material for explanation.. Very good
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 12:43 AM
Points: 582,
Visits: 1,601
|
|
Hi, Nice article. At one stage you say that auto mode does not allow you to specify a root element, and you provide a work around. Are you perhaps talking about SQL 2000? As by using the following construct with SQL 2005, you can very simply provide a root element. FOR XML AUTO, ROOT ('CustomersByRegion') Regards, David McKinney.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Saturday, May 11, 2013 8:17 AM
Points: 460,
Visits: 2,521
|
|
Hi David, You are right. Thakx for pointing this. Jacob
.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Yesterday @ 4:00 AM
Points: 533,
Visits: 2,285
|
|
This is very useful, Jacob, and nicely explained. Thanks for that. I loved the format. I find PATH the most intuitive way of generating XML to a precise format. I really struggled before I started using it. p.s. microsoft.public.sqlserver.xml can be really useful for people like me who are still slightly mystified by aspects of XML.
Best wishes,
Phil Factor Simple Talk
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Saturday, May 11, 2013 8:17 AM
Points: 460,
Visits: 2,521
|
|
Hi phil, Thank you for the comments. I am a regular reader of your articles at simple-talk. They are simply excellent . regards Jacob
.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, October 21, 2011 12:17 PM
Points: 103,
Visits: 158
|
|
| I think PATH is really a great alternative to doing some simple nesting versus EXPLICIT. I'd like to see an article on PATH vs EXPLICIT to see where PATH can be used to supplant EXPLICIT. Good article.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Saturday, May 11, 2013 8:17 AM
Points: 460,
Visits: 2,521
|
|
Hi charles, There is an article on EXPLICIT already on the way. It may be appearing in the next few weeks. thankx Jacob
.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, September 24, 2012 8:39 AM
Points: 41,
Visits: 98
|
|
| This is very good information. One other thing I often need, though is to supply namespace declarations in the root or other nodes. How would you add these? I noticed the XSINIL parameter on ELEMENTS adds an XMLSchema-instance namespace.
|
|
|
|