[xsd-users] problem while compiling the class generated by codesynthesis XSD2.2.3

pratik verma smartpratik at gmail.com
Mon Jun 25 09:09:57 EDT 2007


hello,

I m pratik verma. We are working on a open source project Chillout for which
we need to convert xml schemas in to c++ classes. The class has been
generated by the following command for the attache file. There was not any
kind of error and warning during its generation. But when we are compiling
it with some other files there is an error in this file

Command used for generation for .hxx and template .txx is

xsd cxx-parser --morph-anonymous --namespace-map
urn:dmp:idp2:Represent:DRMMessages:2006:02=chillout::dmp2rdm --namespace-map
urn:dmp:idp2:Represent:Key:2006:02=chillout::dmp2rk --namespace-map
urn:dmp:idp2:Represent:License:2006:02=chillout::dmp2rl --namespace-map
urn:dmp:idp2:Represent:ToolBody:2006:02=chillout::dmp2rtb --namespace-map
urn:dmp:idp1:mpeg21:2002:01-DII-NS:2005:04=chillout::dmp2dii --namespace-map
urn:dmp:idp2:mpeg21:2004:01-IPMPDIDL-NS:2006:02=chillout::dmp2ipmpdidl
--namespace-map
urn:dmp:idp2:mpeg21:2004:01-IPMPINFO-NS:2006:02=chillout::dmp2ipmpinfo
--namespace-map
http://www.w3.org/2000/09/xmldsig#=chillout::dsig--namespace-map
http://www.w3.org/2001/04/xmlenc#=chillout::xenc
dmp2rdm-2006-02.xsd





errors while compiling are:-
in .hxx

Error : declaration of struct
chillout::dm2rdm::_xsd_toolType<_xsd_toolBaseDescription_,_xsd_ToolRef_,
_xsd_InitalizationSettings_, _xsd_RightsDescriptor_, _xsd_signature,
_xsd_order, _xsd_alternators, _xsd parametricDescription>

Error 2: line 568 unexpected initalizer before '<' token
Error 3: chillout dmp2info has not been declared

.txx

Error line 3529 _end_element_impl has not been declared
Error chillout:dmp2ipmpinfo not declared


I have also attached the .xsd file for it. So please suggest me somthing so
that I can overcome this error.I shall be waiting for your reply
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmp2rdm-2006-02.xsd
Type: application/octet-stream
Size: 32434 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070625/62c23ef1/dmp2rdm-2006-02.obj


More information about the xsd-users mailing list