[xsd-users] Error using generated mapping-files for schema MPEG-21 DIA

Boris Kolpackov boris at codesynthesis.com
Mon Jun 15 15:56:06 EDT 2009


Hi Michael,

Michael Eberhard <m1eberha at itec.uni-klu.ac.at> writes:
 
> To make the generation of the mapping files work, I had to replace the
> AudioPresentationPreferencesType in the MPEG-21 DIA scheme in lines 222-322
> with the dummy type in lines 217-221 (I was not able to find out why this
> type lead to an error, but as it is not essential for my work I moved on
> without it).

Hm, with the original schema the compiler crashes. I will take a closer
look at this and will let you know what I find.

 
> With the changes and commands mentioned above I was able to successfully
> create the mapping files. However, whenever I try to access the attributes
> for  <http://www-itec.uni-klu.ac.at/~m1eberha/demo/ued.xml> this UED-example
> as illustrated in the polymorphism-example, I get an error that I could not
> backtrack so far.

Your XML document uses xsi:type while you compiled your schemas without
--generate-polymorphic. I am pretty sure this is the cause of your
problems. See Section 2.11, "Mapping for xsi:type and Substitution Groups"
in the C++/Tree Mapping User Manual for details:

http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/manual/#2.11

Boris




More information about the xsd-users mailing list