[xsd-users] Failing to parse XML document generated with the same
code.
Juan Pablo Perez
juanpablo.perez at gmail.com
Fri Sep 18 20:16:19 EDT 2009
Boris,
Thanks for the amaizingly quick reply!
The files are all on the same directory and I don't get any more
errors or warning that the ones on my previous email... so, no, I
don't get:
warning: unable to open primary document entity 'xml1.xsd'
:S
Regards.
Juan
On Fri, Sep 18, 2009 at 4:54 PM, Boris Kolpackov
<boris at codesynthesis.com> wrote:
> Hi Juan,
>
> Juan Pablo Perez <juanpablo.perez at gmail.com> writes:
>
>> And when I run the code I get the following errors:
>>
>> xml1.xml:2:93 error: Unknown element 'msg'
>
> I created a test case based on your schema and code. It works fine
> if I keep xml1.xsd in the same directory as xml1.xml. If I move
> this file somewhere else, I get the same errors you do. I also got
> the following warning before all the errors:
>
> warning: unable to open primary document entity 'xml1.xsd'
>
> Do you get the warning as well? If you do, then the problem is that
> the parser cannot find the schema to validate the XML document. For
> various ways to resolve this see Section 5.1, "XML Schema Validation
> and Searching" in the C++/Tree Mapping Getting Started Guide:
>
> http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/guide/#5.1
>
> Boris
>
More information about the xsd-users
mailing list