Saving a xaml file on Studio fails due to "contains significant white space(s)" error

A xaml file can be opened by Studio, but saving it fails. The exception is XamlXmlWriterException and "contains significant white space(s)" is shown as error message.

The error message indicates there are some extra white spaces in the location specified.

  • Find the specified location indicated within the error message and remove any extra spaces. 
  • Remote extra "Space" characters. 
Removing extra spaces allow the file to be saved.