Git Product home page Git Product logo

Comments (18)

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
Reported by ggregory

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
ggregory said:
Created an attachment (id=8)
XML Schema

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
ggregory said:
Created an attachment (id=9)
Java example using the generated schema.

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
ryan_shoemaker said:
Verified problem, investigating cause....

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
ryan_shoemaker said:
Created an attachment (id=10)
new version of text.xsd with necessary customizations

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
ggregory said:
Created an attachment (id=11)
For completness' sake, I am including our external binding.xjb, which Ryan found missing and noted by his addition of test.xsd.

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
kohsuke said:
Taking over this bug...

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
kohsuke said:
This is not a bug.

The JAXB 1.0 spec doesn't support the mapping to DOM, so the RI is not
allowed to do this in the strict mode. When releasing JAXB RI 1.0.2, we
did consider doing this automatically in the extension mode (-extension switch),
but we had a concern regarding future backward compatibility support problem,
and decided to pull it off at the last moment.

The good news is, you can do this by using XJC vendor customization.
See the attached schema for how you can do this. Also check out the mailing
list archive and the release notes for more info.

AFAIK, the JAXB 2.0 spec is indeed considering this sort of binding as a default
behavior for .

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
kohsuke said:
Created an attachment (id=12)
Shows how you can use xjc:dom customization to avoid this problem.

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
File: bindings.xjb
Attached By: ggregory

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
File: request.xsd
Attached By: ggregory

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
File: ResultSetJaxbParser.java
Attached By: ggregory

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
File: test.xsd
Attached By: kohsuke

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
File: test.xsd
Attached By: ryan_shoemaker

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
Was assigned to kohsuke

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
This issue was imported from java.net JIRA JAXB-16

from jaxb-ri.

Tomas-Kraus avatar Tomas-Kraus commented on July 29, 2024

@glassfishrobot Commented
Marked as incomplete on Thursday, April 14th 2005, 10:28:43 am

from jaxb-ri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.