highsource / highsource/jaxb-tools

Duplicate class name in the same XSD

Open
#189 8 comments 0 reactions 0 assignees View on GitHub
question
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.