![]() |
A SIMPLE XML EXTRACT USING SQL SERVER 2000 "SELECT...FOR XML AUTO" |
The SQL connection string is ="SELECT * from glmaster FOR XML AUTO"
Note: The connection is OLEDB NOT DSN.
MS SQL Server 2000 returns 1 nested tag per table row where:
The XML is returned to the client as an XML data island and rolled out through javascript using the XML DOM.
Click "VIEW", then "SOURCE" to see the XML data island and the javascript XMLDOM rollout
Execution begins...
(Note: You have to add one to use the XML DOM on the client side)
NOTE: The roll out is not recursive since the "XML AUTO" will only return two levels.