Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #35988

xjb binding with xs:any

Newsgroups comp.lang.java.programmer
Date 2016-11-29 11:07 -0800
Message-ID <71be9001-1988-401b-b04b-2b5e668e8622@googlegroups.com> (permalink)
Subject xjb binding with xs:any
From Philipp Kraus <philipp.kraus.flashpixx@gmail.com>

Show all headers | View raw


Hello,

I try to compile with XJC a XSD schema into Java classesn. The XSD file is:
https://github.com/APTD/Simulation/blob/master/src/main/xsd/network.xsd

and the binding file:
https://github.com/APTD/Simulation/blob/master/src/main/xsd/bindings.xjb

The XSD includes the main schema: http://www.railml.org/files/download/schemas/2016/railML-2.3/schema/railML.xsd

but there a some subschema defined which uses an xs:any attribut. If I try to compile my main XSD, I get the error that Any is defined multiple time (in each subschema). e.g.:

http://www.railml.org/files/download/schemas/2016/railML-2.3/schema/infrastructure.xsd (line 435)

http://www.railml.org/files/download/schemas/2016/railML-2.3/schema/genericRailML.xsd (line 140)

http://www.railml.org/files/download/schemas/2016/railML-2.3/schema/timetable.xsd (line 400)

How can I fix this error within my binding file? In my case the any elements can be skipped / ignored.

Thanks

Phil

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

xjb binding with xs:any Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-11-29 11:07 -0800
  Re: xjb binding with xs:any Sebastian <nowhere@nirvana.org> - 2016-11-30 19:13 +0100
    Re: xjb binding with xs:any Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-11-30 13:04 -0800
      Re: xjb binding with xs:any Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-12-02 04:30 -0800
        Re: xjb binding with xs:any Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-12-07 03:28 -0800
          Re: xjb binding with xs:any Sebastian <nowhere@nirvana.org> - 2016-12-07 23:48 +0100
            Re: xjb binding with xs:any Sebastian <nowhere@nirvana.org> - 2016-12-07 23:54 +0100

csiph-web