Comments (18)
- Issue Imported From: javaee/jaxb-v2#16
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @glassfishrobot
- Original Issue Closed By:@glassfishrobot
from jaxb-ri.
@glassfishrobot Commented
Reported by ggregory
from jaxb-ri.
@glassfishrobot Commented
ggregory said:
Created an attachment (id=8)
XML Schema
from jaxb-ri.
@glassfishrobot Commented
ggregory said:
Created an attachment (id=9)
Java example using the generated schema.
from jaxb-ri.
@glassfishrobot Commented
ryan_shoemaker said:
Verified problem, investigating cause....
from jaxb-ri.
@glassfishrobot Commented
ryan_shoemaker said:
Created an attachment (id=10)
new version of text.xsd with necessary customizations
from jaxb-ri.
@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.
@glassfishrobot Commented
kohsuke said:
Taking over this bug...
from jaxb-ri.
@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.
@glassfishrobot Commented
kohsuke said:
Created an attachment (id=12)
Shows how you can use xjc:dom customization to avoid this problem.
from jaxb-ri.
@glassfishrobot Commented
File: bindings.xjb
Attached By: ggregory
from jaxb-ri.
@glassfishrobot Commented
File: request.xsd
Attached By: ggregory
from jaxb-ri.
@glassfishrobot Commented
File: ResultSetJaxbParser.java
Attached By: ggregory
from jaxb-ri.
@glassfishrobot Commented
File: test.xsd
Attached By: kohsuke
from jaxb-ri.
@glassfishrobot Commented
File: test.xsd
Attached By: ryan_shoemaker
from jaxb-ri.
@glassfishrobot Commented
Was assigned to kohsuke
from jaxb-ri.
@glassfishrobot Commented
This issue was imported from java.net JIRA JAXB-16
from jaxb-ri.
@glassfishrobot Commented
Marked as incomplete on Thursday, April 14th 2005, 10:28:43 am
from jaxb-ri.
Related Issues (20)
- Add istack-commons-tools to jaxb-bom HOT 6
- ElementOutlineImpl produces raw type and proposed fix
- License information is inconsistent HOT 1
- ElementOutlineImpl omits serialVersionUID and proposed fix
- Issues due to #1734 #1746 HOT 1
- txw runtime and compiler should have different module names
- Move JavaCompiler, Reference and J2SJAXBModel from XJC API to JXC API
- Remove JavaCompiler, Reference and J2SJAXBModel from XJC API
- Update ant tasks
- Allow globalBindings to set nameXmlTransform like in schemaBindings HOT 2
- [Regress] Namespace inheritance by children element
- Dependency Exclusion for stax-ex in jaxb-bom is incompatible with dependency:analyze-dep-mgt
- XJC ConstField generates empty javadoc comment blocks
- Backport of PR in v2.x
- schemaLocation="*" leads to issue in applicated binding
- Backport 1661 fix for 3.x
- Unmarshalling Issues HOT 1
- Custom namespace marshalling using JAXB RI results in property "org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper" is not supported HOT 3
- JAXB.unmarshal of string fails with data generated by JAXB.marshal
- XJC Javadoc generation : locale is ignored HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jaxb-ri.