Forums

FpML Discussion

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2172
    andrewmorgan
    Spectator

    When I compile the 5.5 schema I get warnings like this in the generated files. e.g in Calculation.java *

    * You are getting this “catch-all” property because of the following reason: * The field name “NotionalSchedule” is used by two different parts of a schema. See: * line 110 of file:/C:/jaxbCompile/src/main/resources/fpml/5_5/fpml-ird.xsd * line 71 of file:/C:/jaxbCompile/src/main/resources/fpml/5_5/fpml-ird.xsd *

    In order to fix this I would have to create a bindings.jxb file. This is a bit annoying as it occurs in 53 files. Has anyone already done this to save me some effort? If I end up doing it myself can I publish the bindings on GitHub and push the generated jar in maven central under the org.fpml package so that everyone else doesn’t have to do it?

    #2178
    dm71594
    Spectator

    I also had this same problem. An external bindings file may not work because I also seen conflicts on the same line in some cases (element was conflicting with itself). The was because of the way JAXB handles references to groups in a schema. To fix it, all you need to do is enable simple binding mode. To do this, paste the following into your external bindings file; xmlns:xjc=”http://java.sun.com/xml/ns/jaxb/xjc” …

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.