XML attribute 'attribute1' must appear before XML attribute 'attribute2'
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

XML attribute 'attribute1' must appear before XML attribute 'attribute2'

Visual Studio 2008

Attributes in an XML document literal are specified in an invalid order. Valid attribute order for an XML document literal is based on the XML 1.0 specification. For example, the encoding attribute of an XML document literal must immediately follow the version attribute.

Error ID: BC31157

To correct this error

  • Update the attribute order for the XML document literal by using the guidelines specified in the XML 1.0 specification.

© 2016 Microsoft