Hi, I am using Xerces C++ 2.8.0 to validate one XML file (myfile.xml)
against its schema (myschema.xsd).
To do the validation I am using the StdInParse binary that comes with Xerces
and the error that I get is:

"Warning at (file , line 0, char 0): An exception occurred!
Type:RuntimeException, Message:Warning: The primary document entity could
not be opened. Id=myschema.xsd"

Inside myfile.xml I am pointing to the corresponding schema using the
following code:

<MyFileConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="myschema.xsd">

And both files (XML and Schema) are placed in the same folder...

How can I reference the schema to allow StdInParse to find it? Do I need to
put the full path to link with the schema? How can I avoid that?

Thanks in advance,

Mh

Reply via email to