JAXB unmarshalling inXml flag to full object

HopeZ

New Member
Greets,Ive got a following problem. My schema is as follows.\[code\] <xs:element name="subject"> <xs:complexType> <xs:sequence> <xs:element name="subjectId" type="xs:integer"/> <xs:choice> <xs:sequence> <xs:element name="inXml" type="xs:boolean"/> </xs:sequence> <xs:sequence> <xs:element name="subjectId" type="xs:integer" minOccurs="0"/> <xs:element name="names" type="Name" maxOccurs="unbounded"/>\[/code\]..... and so on.which results in XML with 2 types of objects:[*]beautifully done nodes with all data i need (subjecId, names, etc. )[*]subjectId + inXml flag set to true.While unmarshalling ofc I get either one of those.How can I, during the unmarshalling process, make the app to look for the full data and replace it where needed ?Thank you in advance.
 
Back
Top