Overview
Quite often imported values don't include the ampersand (&) symbol but in cases like customer names, it may be used. An example name of this type could be 'S&C Southwest Power' which may look like the following in an XML:
<Customer>S&C Southwest Power</Customer>
This will produce the following error:
This issue is not related to M-Files but rather how XML files work in general. This error occurs because the XML assumes ampersand is formatting rather than a value.
Solution
The ampersand value should be replaced with & which means the ampersand is a value instead of XML formatting. In this example, the correct way to refer to the customer value is following:
<Customer>S&C Southwest Power</Customer>
Now the XML file is read as expected and the customer metadata is added to S&C Southwest Power.
