[xsd-users] exporting symbols from a windows dll

Angelo Difino angelo at cedeo.net
Fri Sep 3 06:13:59 EDT 2010


Hi Boris,

I've checked the alfa release of 4.0.0 and seems that any troubles flew
away!

Now i'm able to compile my package with windows7/visual studio 2008,
exporting simbol, without any problems!

(nowadays i've checked just compilation, but you can have a look to the
difference below)

------------>My previous script (3.2.0) was:

1)xsd cxx-tree --generate-xml-schema --generate-serialization
--generate-polymorphic xmlschema.xsd
2)xsd cxx-tree --generate-wildcard --extern-xml-schema xmlschema.hxx
--generate-serialization --generate-polymorphic --file-per-type
--namespace-map
urn:mpeg:mpeg-m:schema:storelicenseprotocol:2010=mxm_dataobject::mxm_slp
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/bbl.xsd=bbl.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/mxmalp.xsd=mxmalp.xsd --location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2010/04/mxmbp.xsd=mxmbp.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/dia.xsd=dia.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/erl.xsd=erl.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/didl-msx.xsd=didl-msx.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/didl.xsd=didl.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/didmodel.xsd=didmodel.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/dii.xsd=dii.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/ipmpdidl.xsd=ipmpdidl.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/ipmpinfo-msx.xsd=ipmpinfo-msx.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/ipmpinfo.xsd=ipmpinfo.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2010/08/mxmidp.xsd=mxmidp.xsd --location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/ipmpmsg.xsd=ipmpmsg.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/mpeg4ipmp.xsd=mpeg4ipmp.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/mpeg7smp.xsd=mpeg7smp.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-m1x.xsd=rel-m1x.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-m2x.xsd=rel-m2x.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-m3x.xsd=rel-m3x.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-mx.xsd=rel-mx.xsd --location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-r.xsd=rel-r.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-sx.xsd=rel-sx.xsd --location-map
http://www.w3.org/2001/xml.xsd=xml.xsd --location-map
http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd=dsig.xsd
--location-map
http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd=xenc.xsd
--namespace-map
urn:mpeg:maf:schema:mediastreaming:DIDLextensions=mxm_dataobject::didl_msx
--namespace-map urn:mpeg:mpeg21:2006:07-DIDL-NS=mxm_dataobject::didl
--namespace-map
urn:mpeg:mpeg21:2002:02-DIDMODEL-NS=mxm_dataobject::didmodel
--namespace-map urn:mpeg:mpeg21:2002:01-DII-NS=mxm_dataobject::dii
--namespace-map
urn:mpeg:mpeg21:2004:01-IPMPDIDL-NS=mxm_dataobject::ipmpdidl
--namespace-map urn:mpeg:mpeg21:2003:01-DIA-NS=mxm_dataobject::dia
--namespace-map urn:mpeg:mpeg21:2005:01-ERL-NS=mxm_dataobject::erl
--namespace-map
urn:mpeg:maf:Schema:mediastreaming:IPMPINFOextensions:2007=mxm_dataobject::ipmpinfo_msx
--namespace-map
urn:mpeg:mpeg21:2004:01-IPMPINFO-NS=mxm_dataobject::ipmpinfo
--namespace-map
urn:mpeg:mpegB:schema:IPMP-XML-MESSAGES:2007=mxm_dataobject::ipmpmsg
--namespace-map urn:mpeg:mpeg4:IPMPSchema:2002=mxm_dataobject::mpeg4ipmp
--namespace-map urn:mpeg:mpeg7:smp:schema:2001=mxm_dataobject::mpeg7smp
--namespace-map
urn:mpeg:mpeg21:2005:01-REL-M1X-NS=mxm_dataobject::rel_m1x
--namespace-map
urn:mpeg:mpeg21:2006:01-REL-M2X-NS=mxm_dataobject::rel_m2x
--namespace-map
urn:mpeg:mpeg21:2006:01-REL-M3X-NS=mxm_dataobject::rel_m3x
--namespace-map urn:mpeg:mpeg21:2003:01-REL-MX-NS=mxm_dataobject::rel_mx
--namespace-map urn:mpeg:mpeg21:2003:01-REL-R-NS=mxm_dataobject::rel_r
--namespace-map urn:mpeg:mpeg21:2003:01-REL-SX-NS=mxm_dataobject::rel_sx
--namespace-map http://www.w3.org/XML/1998/namespace=mxm_dataobject::xml
--namespace-map http://www.w3.org/2000/09/xmldsig#=mxm_dataobject::dsig
--namespace-map http://www.w3.org/2001/04/xmlenc#=mxm_dataobject::xenc
--namespace-map
urn:mpeg:mpeg-m:schema:accesslicenseprotocol:2010=mxm_dataobject::mxm_alp --namespace-map
urn:mpeg:mpeg-m:schema:baseprotocol:2010=mxm_dataobject::mxm_bprotocols
--namespace-map
urn:mpeg:mpeg-m:schema:identifycontentprotocol:2010=mxm_dataobject::mxm_icp
--namespace-map
urn:mpeg:mpeg-m:schema:identifydeviceprotocol:2010=mxm_dataobject::mxm_idp
--namespace-map
urn:mpeg:mpeg-m:schema:verifydeviceprotocol:2010=mxm_dataobject::mxm_vdp
didl.xsd

------------>My new script (with export inside) is:

1)xsd cxx-tree --generate-xml-schema --generate-serialization
--generate-polymorphic xmlschema.xsd
2)xsd cxx-tree --hxx-prologue "#include \"myexport.hxx\""
--export-symbol MXM_SYMBOL_DECL --generate-wildcard --extern-xml-schema
xmlschema.hxx --generate-serialization --generate-polymorphic
--file-per-type --namespace-map
urn:mpeg:mpeg-m:schema:storelicenseprotocol:2010=mxm_dataobject::mxm_slp
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/bbl.xsd=bbl.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/mxmalp.xsd=mxmalp.xsd --location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2010/04/mxmbp.xsd=mxmbp.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/dia.xsd=dia.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/erl.xsd=erl.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/didl-msx.xsd=didl-msx.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/didl.xsd=didl.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/didmodel.xsd=didmodel.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/dii.xsd=dii.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/ipmpdidl.xsd=ipmpdidl.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/ipmpinfo-msx.xsd=ipmpinfo-msx.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/ipmpinfo.xsd=ipmpinfo.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2010/04/mxmidp.xsd=mxmidp.xsd --location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/ipmpmsg.xsd=ipmpmsg.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/mpeg4ipmp.xsd=mpeg4ipmp.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/mpeg7smp.xsd=mpeg7smp.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-m1x.xsd=rel-m1x.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-m2x.xsd=rel-m2x.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-m3x.xsd=rel-m3x.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-mx.xsd=rel-mx.xsd --location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-r.xsd=rel-r.xsd
--location-map
http://mxm.wg11.sc29.org/wp-content/uploads/2009/12/rel-sx.xsd=rel-sx.xsd --location-map
http://www.w3.org/2001/xml.xsd=xml.xsd --location-map
http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd=dsig.xsd
--location-map
http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd=xenc.xsd
--namespace-map
urn:mpeg:maf:schema:mediastreaming:DIDLextensions=mxm_dataobject::didl_msx
--namespace-map urn:mpeg:mpeg21:2006:07-DIDL-NS=mxm_dataobject::didl
--namespace-map
urn:mpeg:mpeg21:2002:02-DIDMODEL-NS=mxm_dataobject::didmodel
--namespace-map urn:mpeg:mpeg21:2002:01-DII-NS=mxm_dataobject::dii
--namespace-map
urn:mpeg:mpeg21:2004:01-IPMPDIDL-NS=mxm_dataobject::ipmpdidl
--namespace-map urn:mpeg:mpeg21:2003:01-DIA-NS=mxm_dataobject::dia
--namespace-map urn:mpeg:mpeg21:2005:01-ERL-NS=mxm_dataobject::erl
--namespace-map
urn:mpeg:maf:Schema:mediastreaming:IPMPINFOextensions:2007=mxm_dataobject::ipmpinfo_msx
--namespace-map
urn:mpeg:mpeg21:2004:01-IPMPINFO-NS=mxm_dataobject::ipmpinfo
--namespace-map
urn:mpeg:mpegB:schema:IPMP-XML-MESSAGES:2007=mxm_dataobject::ipmpmsg
--namespace-map urn:mpeg:mpeg4:IPMPSchema:2002=mxm_dataobject::mpeg4ipmp
--namespace-map urn:mpeg:mpeg7:smp:schema:2001=mxm_dataobject::mpeg7smp
--namespace-map
urn:mpeg:mpeg21:2005:01-REL-M1X-NS=mxm_dataobject::rel_m1x
--namespace-map
urn:mpeg:mpeg21:2006:01-REL-M2X-NS=mxm_dataobject::rel_m2x
--namespace-map
urn:mpeg:mpeg21:2006:01-REL-M3X-NS=mxm_dataobject::rel_m3x
--namespace-map urn:mpeg:mpeg21:2003:01-REL-MX-NS=mxm_dataobject::rel_mx
--namespace-map urn:mpeg:mpeg21:2003:01-REL-R-NS=mxm_dataobject::rel_r
--namespace-map urn:mpeg:mpeg21:2003:01-REL-SX-NS=mxm_dataobject::rel_sx
--namespace-map http://www.w3.org/XML/1998/namespace=mxm_dataobject::xml
--namespace-map http://www.w3.org/2000/09/xmldsig#=mxm_dataobject::dsig
--namespace-map http://www.w3.org/2001/04/xmlenc#=mxm_dataobject::xenc
--namespace-map
urn:mpeg:mpeg-m:schema:accesslicenseprotocol:2010=mxm_dataobject::mxm_alp --namespace-map
urn:mpeg:mpeg-m:schema:baseprotocol:2010=mxm_dataobject::mxm_bprotocols
--namespace-map
urn:mpeg:mpeg-m:schema:identifycontentprotocol:2010=mxm_dataobject::mxm_icp
--namespace-map
urn:mpeg:mpeg-m:schema:identifydeviceprotocol:2010=mxm_dataobject::mxm_idp
--namespace-map
urn:mpeg:mpeg-m:schema:verifydeviceprotocol:2010=mxm_dataobject::mxm_vdp
didl.xsd

------------>My previous package (3.2.0) created:
http://www.mxb.it/enigmahc/mxm_dataobject_old.zip

------------>My new package (with export inside) created:
http://www.mxb.it/enigmahc/mxm_dataobject_new.zip

Best regards,
Angelo!


On 30/08/2010 20:42, Boris Kolpackov wrote:
>  Hi Angelo,
>
>  Boris Kolpackov<boris at codesynthesis.com>   writes:
>
>
>>  Ok, here is the binary for you to try:
>>
>>  http://www.codesynthesis.com/~boris/tmp/xsd-4.0.0.a1-i686-windows.zip
>>
>  If you already downloaded this, can you re-download it? I just discovered
>  that the binary was created with the wrong command and re-uploaded the
>  correct version.
>
>  Boris
>
>




More information about the xsd-users mailing list