[xsd-users] Parsing issue
Boris Kolpackov
boris at codesynthesis.com
Wed Nov 5 09:00:04 EST 2008
Hi Ildar,
Ildar Farkhshatov <ildar.farkhshatov at db.com> writes:
> <Product xsi:type="FxEuroOpt">
> <Name>Euro</Name>
> <Strike>1.0</Strike>
> <NotionalAmount>1</NotionalAmount>
> <ZoneCut>NY</ZoneCut>
> <EffectiveDate>2008-11-29T00:00:00</EffectiveDate>
> <ExpiryDate>2008-11-12T00:00:00</ExpiryDate>
> <SettleDate>2008-11-14T00:00:00</SettleDate>
> <CurrencyPair>
> <Und>JPY</Und>
> <Acc>USD</Acc>
> </CurrencyPair>
> <NotionalCurrency>USD</NotionalCurrency>
> <PayCurrency>USD</PayCurrency>
> </Product>
>
> EffectiveDate is not a part of FxEuroOpt and should be ignored, however, I
> am receiving
> expected_element< char > (
> "ExpiryDate",
> "")
>
> exception, which seems to be incorrect, as XML standard states that
> unknown elements should be ignored.
When XML Schema validation is involved, it is hard to say whether
a particular element can be ignored or not without seeing the
corresponding schema fragment.
There are also ways to disable XML Schema validation but that
depends on which mapping you are using (C++/Tree or C++/Parser).
If you can let me know which mapping it is, I can give you some
pointers on how to turn validation off.
Boris
More information about the xsd-users
mailing list