[xsd-users] Parsing issue

Ildar Farkhshatov ildar.farkhshatov at db.com
Wed Nov 5 08:35:28 EST 2008


Hi all,

I've got an issue when parsing XML

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

Best Regards, Ildar


---

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.


More information about the xsd-users mailing list