Share via


Invalid white space

Invalid white space. White space cannot follow the open angle bracket character '<' in an element tag.

This error occurs when white space appears between the open angle bracket character '<' and the first character of the element tag.

This error is raised when the XAML file contains lexical elements that are not valid in XML.

Error ID: XAML0302

Note

This error message also applies to the Silverlight Designer.

To correct this error

  • Remove all white space between the '<' character and the first character of the element tag.

Example

The following code example shows a correctly declared element. Insert a space between the '<' and 'B' characters to raise error XAML0302.

<!-- Insert a space between the '<' and 'B' characters to raise error XAML0302. -->
<Button Content= 'OK' />

See Also

Concepts

XAML Errors and Help

Other Resources

XAML in WPF

XAML in Silverlight

XML Standards Reference

White Space [XML Standards]

Elements [XML Standards]