"XML-file failed validation against schema located in:
C:\Program Files\MATLAB\R2006b\sys\namespace\info\v1\info.xsd"
What does this mean? I don't see this error with any other toolbox
that I recall.
Scott
A non-answer answer: It means that some XML file has an
error in it, so it doesn't parse correctly. XML is a markup language
similar to HTML which is gaining increasing popularity as a way
of exchanging data between programs. Example:
http://www.w3schools.com/xml/simple.xml
Now that begs the question: Why would changing the directory
cause something to try parsing some XML file?
A lot of times, really weird behaviors like this are due to
accidentally overriding a built-in command. Perhaps in your
path there is a script called "cd" which gets invoked when
you tried to execute the "cd" command.
If you could copy and past this portion of your session, we
could (hopefully) diagnose what's going on. If it was the "cd"
command you were executing, try also executing the command
which cd -all
- Randy
- Randy
> Scott Miller wrote:
>> When I change the current directory manually in 2006b using the
>> toolbar into a particular toolbox, I get the following error:
>>
>> "XML-file failed validation against schema located in:
>> C:\Program Files\MATLAB\R2006b\sys\namespace\info\v1\info.xsd"
>>
>> What does this mean? I don't see this error with any other toolbox
>> that I recall.
>
> A non-answer answer: It means that some XML file has an
> error in it, so it doesn't parse correctly. XML is a markup language
> similar to HTML which is gaining increasing popularity as a way
> of exchanging data between programs. Example:
> http://www.w3schools.com/xml/simple.xml
>
> Now that begs the question: Why would changing the directory
> cause something to try parsing some XML file?
Matlab uses certain XML files in toolbox directories to display links in
the Matlab Start menu. So I suspect that is what is going on here. It
happened to my toolbox last year. The fix is usually pretty simple.
Offhand I don't know what I did.
Dan
Hi Scott,
When you cd to a directory, that directory is placed on MATLAB's path.
The Start Button and Help browser get information about what to display
from files called info.xml files that are on the path.
I am assuming that there was a little more info in the message that what
is posted above. The error message is trying to tell you which info.xml
file failed, where the schema file lives that we validate against, what
the errors are, and how to re-test the file after making changes. Users
often create their own info.xml files to place items in the help or
start button (esp. if they are developing toolboxes).
We need to validate the file because invalid files can cause some really
bad problems in the UI and can cause java exceptions.
If the file is not your info.xml file that you created, you might want
to contact the toolbox author so that they can fix it and provide a
corrected copy of the file to you.
Hope this helps,
Kristin
--------------------------------------
Kristin Thomas
Software Engineer
The MathWorks, Inc.
kth...@mathworks.com
--------------------------------------