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

Michael Eberhard m1eberha at itec.uni-klu.ac.at
Mon Jun 15 10:06:05 EDT 2009


Hi Boris,

 

I am trying to use CodeSynthesis XSD to access XML documents formatted
according to MPEG-21 Digital Item Adaptation (DIA). I am using the
xsd-3.2.0-i686-linux-gnu distribution and compile the generated mapping
files using g++. The mapping files are generated based on the following XML
schemes and with the following commands:

 

-  <http://www-itec.uni-klu.ac.at/~m1eberha/demo/MXM-DIA+UCD.xsd> MPEG-21
DIA: xsd cxx-tree --namespace-map urn:mpeg:mpeg21:2003:01-DIA-NS=dia

--namespace-map urn:mpeg:mpeg7:schema:2001=mpeg7 --namespace-map
urn:mpeg:mpqf:schema:2008=mpqf MXM-DIA+UCD.xsd

-  <http://www-itec.uni-klu.ac.at/~m1eberha/demo/mpeg7-udp-2004.xsd> MPEG-7
UDP: xsd cxx-tree --namespace-map urn:mpeg:mpeg7:schema:2001=mpeg7
mpeg7-udp-2004.xsd

-  <http://www-itec.uni-klu.ac.at/~m1eberha/demo/mpqf-acap.xsd> MPEG Query
Format: xsd cxx-tree --namespace-map urn:mpeg:mpqf:schema:2008=mpqf
mpqf-acap.xsd

-  <http://www-itec.uni-klu.ac.at/~m1eberha/demo/xml-1998.xsd> XML: xsd
cxx-tree xml-1998.xsd

 

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).

 

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.

 

I don't really know what else I could try to get the schema mappings to
work, so I would be grateful for any help.

 

Thanks & best regards,

Michael




More information about the xsd-users mailing list