XML attribute 'version' must be the first attribute in XML declaration

The version attribute of an XML document literal is not the first attribute specified. The version attribute must be the first attribute specified for an XML document literal, per the XML 1.0 specification.

Error ID: BC31156

To correct this error

  • Reposition the version attribute of the XML document literal so that it is the first attribute.

See Also

Concepts

XML Literals and the XML 1.0 Specification

Reference

XML Document Literal

Other Resources

XML Literals

XML in Visual Basic