I understand that you are facing an 'Invalid Simscape Multibody Import XML file' error while using 'smimport' function.
These errors are expected to occur when the XML file is not in the expected format. You may refer to the following documentation page for Simscape Multibody Import XML Schema for more details on the XML file format expected by the 'smimport' function.