Facing one more issue.
Final xml to generate should have the following format
The Reviewer xsd has a Header complexType as :
The Book.xsd has <Batch> info as follows:
The <
Doc>,<Batch> belong to Book.xsd while rest of them, including Header, belong to Reviewer.xsd.
As you can see the <Header> tag occurs at two places. One instance occurs near the root node and other is deep inside.
Have prepared the xjb to generate classes using xjc from both xsd into a single package.
However , when I create the xml structure above and try to marshal, the error thrown is:
unable to marshal type "com.impl.Header" as an element because it is missing an @XmlRootElement annotation]
Is there a way to accomodate this complexType inside the Batch tag?