XML literals and XML properties are not supported in embedded code within ASP.NET

XML literals and XML properties are not supported in embedded code within ASP.NET. To use XML features, move the code to code-behind.

An XML literal or XML axis property is defined within embedded code (<%= =>) in an ASP.NET file.

Error ID: BC31200

To correct this error

  • Move the code that includes the XML literal or XML axis property to an ASP.NET code-behind file.

See Also

Other Resources

XML Literals

XML Axis Properties

XML in Visual Basic