highsource / highsource/jaxb-tools
Duplicate class name in the same XSD
- Dominant language
- Java
- Stars
- 465
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am trying to generate Java stub from XSDs (received from third party so cannot change that). It is working fine but when XSD has same element name for the higher order element and nested element also then it is creating duplicate class name. Implementation from my POM file
`
add-source-for_response
generate
true
true
src/main/resources
ResponseXSD/RegisterResponse.xsd
target/generated-sources/xjc
com.abcd.response
`
Sample schema :
`
****
...................
****
..................
`
All the referenced schema stub generated properly.
But when the Response stub is generated **_ResponseBody_** class was generated two times. One is under top level Response object another under Purchase.
How can I preserve the hierarchical information?
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.