Microsoft SQL ServerFOR XML PATH

Download Microsoft SQL Server for free

Remarks

There are also several other FOR XML modes:

  • FOR XML RAW - Creates one <row> element per row.
  • FOR XML AUTO - Attempts to heuristically autogenerate a hierarchy.
  • FOR XML EXPLICIT - Provides more control over the shape of the XML, but is more cumbersome than FOR XML PATH.

Related Examples

Hello World XML