Skip to Main Content Skip to Search
Product Documentation

Address Validation Errors for info.xml Files

About XML File Validation

When MATLAB finds an info.xml file on the search path or in the current folder, it tries to add information to the Help browser or Start button, as specified in the info.xml file. MATLAB automatically validates the file against the supported schema. If there is an invalid construct in the info.xml file, MATLAB displays an error in the Command Window. The error is typically of the form:

Warning: File <yourxmlfile.xml> did not validate.
...

An info.xml validation error can occur when you start MATLAB, press the Start button, or add folders to the search path.

Following, are the primary causes of an XML file validation error and information to address them:

Entities Missing or Out of Order in info.xml

If you do not list required XML elements in the prescribed order, you receive an XML validation error:

Often, errors result from incorrect ordering of XML tags. Correct the error by updating
the info.xml file contents to follow the guidelines in the MATLAB help documentation.

The message contains a hyperlink to the page you are now reading. For a description of the elements you need in an info.xml file and their required ordering, see More About the info.xml File.

Unrelated info.xml File

Suppose you have a file named info.xml that has nothing to do with the MATLAB Help browser or Start button. Because this info.xml file is an unrelated file, if the file causes an error, the validation error is irrelevant. In this case, the error is not actually causing any problems, so you can safely ignore it. To prevent the error message from reoccurring, rename the offending info.xml file, or ensure that the file is not on the search path or in the current folder.

Invalid Constructs in info.xml File

If the purpose of the info.xml file is to add information to the Start button or Help browser, correct the reported problem. Use the message in the error to isolate the problem or use any validator. One validator you can use is from the W3C® at http://www.w3.org/2001/03/webdata/xsv. For more information about the structure of the info.xml file, consult its schema, located at matlabroot/sys/namespace/info/v1/info.xsd.

Outdated info.xml File for a MathWorks Product

If you have an info.xml file from a different version of MATLAB, that file could contain constructs that are not valid with your version. To identify an info.xml file from another version, look at the full path names reported in the error message. The path usually includes a version number, for example, ...\MATLAB\R14\.... In this situation, the error is not actually causing any problems, so you can safely ignore the error message. To ensure that the error does not reoccur, remove the offending info.xml file, or ensure that the file is not on the search path or in the current folder.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS