Attribute value is not valid; expecting 'value1' or 'value2'

An invalid value for an attribute in an XML document literal has been specified. Valid attribute values for an XML document literal are based on the XML 1.0 specification.

Error ID: BC31182

To correct this error

  • Change the attribute value to a value that is valid per the XML 1.0 specification.

See Also

Concepts

XML Literals and the XML 1.0 Specification

Other Resources

XML Literals

XML in Visual Basic