What are the differences between RAW, AUTO and Explicit
modes in retrieving data from SQL Server in XML format?



What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in..

Answer / shobana

RAW

The RAW mode takes the query result and transforms each row
in the result set into an XML element with a generic
identifier row as the element tag and the columns in the
SELECT as attributes.

AUTO

The AUTO mode returns query results in a simple, nested XML
tree. Each table in the FROM clause for which at least one
column is listed in the SELECT clause is represented as an
XML element. The columns listed in the SELECT clause are
mapped to the appropriate element's attributes. The columns
can be optionally mapped to subelements. The nesting of the
elements or hierarchy in the result set is based on the
order of tables identified by the columns specified in the
SELECT clause. The leftmost table will be the top element.
The second leftmost table (identified by columns in the
SELECT statement) will be nested within the top element, and
so on.

EXPLICIT

In EXPLICIT mode, you can explicitly define the shape of the
resulting XML tree. Using this mode requires that the
queries be written in a specific way, so that additional
information about the desired nesting is specified
explicitly as part of the query.

Is This Answer Correct ?    7 Yes 2 No

Post New Answer

More ADO.NET Interview Questions

What are major difference between classic ADO and ADO.NET?

2 Answers  


How to add Primary key in DataSet

6 Answers  


what is a dataview?why is it used for?

4 Answers   Choice Solutions,


What is an orm, and why would you use one instead of plain old ado.net?

0 Answers  


Which keyword is used to accept variable number of parameters?

0 Answers  






What is ado.net connection?

0 Answers  


Which is the best institute in hyderabad to learn DotNet?

11 Answers   Cognizant,


How can I retrieve two tables of data at a time by using data reader? Data reader read and forward only, how is it possible to get 2 tables of data at a time?

0 Answers  


Does dapper use ado.net?

0 Answers  


What are the advantages and disadvantages of using datalist?

0 Answers  


HOW TO FILL GRID VIEW WITH OUT USING SQLDATASOURCE AND PROGRAMING?

4 Answers  


How can you add or remove rows from the datatable object of dataset?

0 Answers  


Categories