Reply to: Script error in XMetaL 8.0April 11, 2013 at 1:59 am
The MapEditor feature doesn't support editing ditamaps containing the BOM character. The only workaround is to remove the BOM character before opening the file with the MapEditor or use only the XML view for editing ditamaps with the BOM character.
Part of this limitation in the MapEditor is due to the scripting technologies underneath, namely FileSystemObject and MSXML. We load the XML from file into a string (BSTR object) before passing it to MSXML. But, the MSXML loadXML API has limitations as noted in the following MSDN KB article: