Re: Well Formed XML not returned using FOR XML (<?xml version="1.0"?>)
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Fri, 12 Jan 2007 18:52:25 +0100
bqsoftware wrote:
The xml that is returned using FOR XML does not return well formed XML. The xml header for example "<?xml version="1.0"?>" is missing.
Query: Select count(*) from dxcg_jobs FOR XML RAW, ELEMENTS
Result: <row>4</row> (Not well formed)
The XML declaration is optional for XML version 1.0 and encoding UTF-8 and UTF-16 so that snippet above can be well-formed without having an XML declaration.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
.
- Prev by Date: Re: Return string containing name of root node?
- Next by Date: RE: weird xquery error
- Previous by thread: Re: Return string containing name of root node?
- Next by thread: Querying xml data with SQL
- Index(es):
Relevant Pages
|