Export (0) Print
Expand All
Expand Minimize

The XML Declaration

SQL Server 2000

It is good practice to provide an XML declaration in every XML document. The application definition file (ADF), which is an XML document, should have one.

The declaration identifies the version of XML being used, optionally indicates the encoding used by this document, and indicates whether or not it relies on external documents for additional information. If no encoding attribute is found, the default for the document is set to UTF-8. If an external document such as a document type definition (DTD) is read, the encoding is set to the encoding value found in the external document. If no encoding is found in the external document, the default is again set to UTF-8.

Your ADF XML declaration should appear as follows:

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>

This indicates that you are using XML that complies with the version 1.0 specification, that the document uses UTF-8 encoding, and that the document does not rely on any external documents for additional information.

Show:
© 2014 Microsoft