[xsd-users] Problem with reading from XML

Boris Kolpackov boris at codesynthesis.com
Tue Jun 10 08:36:31 EDT 2008


Hi Andrea,

Andrea Merli <merli86 at gmail.com> writes:

> I have tried to write "driver.cxx" like in the "C++/Tree Mapping Getting
> Started Guide" but when I execute the instruction "./driver <file.xml>"
> appears many errors like these:
> -Unknown element 'shotBoundaryResults'
> -Attribute 'src' is not declared for element 'seg'

This normally means that the schema could not be found and so your XML
file could not be validated. For ways to resolve this see Q 2.1-2.3 in
the C++/Tree Mapping FAQ:

http://wiki.codesynthesis.com/Tree/FAQ


> I enclose you also the 2 files generates from the compiler xsd and my xml
> file  if they could serve to you.

In the future, please send the schema file instead of the generated C++ 
files.

Boris




More information about the xsd-users mailing list