[xsd-users] Help me: Borland C++ Builder 2007 compiled program has unwanted prefix and all property values are missing.

James Mei jxmei3 at gmail.com
Thu Oct 15 10:06:10 EDT 2009


Hi Boris

Thanks for the advice. I managed to get the BCB2009 to work. But I still
take your advice and tested xsd with VC++ express 2008 and pro 2008. the
programs generated by these compilers produces different XML files for the
same schema.

When a xml is parsed and serialized, there are extra attributes for the
program compiled by vc pro 2008:

by vc++ pro 2008
=================================================
          <LN0 inst="" lnClass="LLN0" lnType="LLN0_0">
            <DOI ix="3452816845" name="Mod">
              <DAI ix="3452816845" name="ctlModel" valKind="Set">
                <Val sGroup="3452816845">status-only</Val>
              </DAI>
            </DOI>
            <DOI ix="3452816845" name="NamPlt">
              <DAI ix="3452816845" name="vendor" valKind="Set">
                <Val sGroup="3452816845">SEL</Val>
              </DAI>
              <DAI ix="3452816845" name="swRev" valKind="Set">
                <Val
sGroup="3452816845">FID=SEL-421-3-R123-V0-Z010010-D20070223</Val>
              </DAI>
              <DAI ix="3452816845" name="d" valKind="Set">
                <Val sGroup="3452816845">Annunciation</Val>
by vc++ express 2008
=================================================
          <LN0 inst="" lnClass="LLN0" lnType="LLN0_0">
            <DOI name="Mod">
              <DAI name="ctlModel" valKind="Set">
                <Val>status-only</Val>
              </DAI>
            </DOI>
            <DOI name="NamPlt">
              <DAI name="vendor" valKind="Set">
                <Val>SEL</Val>
              </DAI>
              <DAI name="swRev" valKind="Set">
                <Val>FID=SEL-421-3-R123-V0-Z010010-D20070223</Val>
              </DAI>
              <DAIname="d" valKind="Set">
                <Val>Annunciation</Val>

ix="3452816845", sGroup="3452816845" are not part of the schema and do not
exist in the program output generated by vc express 2008.
Also, the decimal value of 3452816845 is HEX 0xCDCDCDCD, does it mean
anything ?

I also have trouble compiling the program into a dll following the step
guild. I will keep testing and give more detail later.

Since this is moving away from Borland compiler, should I open another topic
?

Cheers
James


On Thu, Oct 15, 2009 at 9:10 PM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> Hi James,
>
> James Mei <jxmei3 at gmail.com> writes:
>
> > From your expert experience, do you have any idea what might be the cause
> > for "Debug information" requirement in BCB2009 ?
>
> I think this is a bug in the compiler. Seeing that this is Borland C++, I
> am not surprised at all. Have you considered changing to something of
> better quality? VC++ Express edition is free and works great with XSD.
>
> Boris
>


More information about the xsd-users mailing list