|
Re: Can we use list of user data structure as an element [message #664487 is a reply to message #664461] |
Sat, 09 April 2011 17:05 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Anup,
Most schema to Java mappers will produce an intermediate object to
represent SelectedDataList so I think you're out of luck.
anup.mayank@gmail.com wrote:
> :blush: Hi,
>
> I am working with xml, xsd and jaxb for xml to java and java to xml
> conversion
>
> I have xml of this format
>
> <Configuration>
> <SelectedDataList>
> <Data id="name" seq="1"/>
> <Data id="taxid" seq="2"/>
> </SelectedDataList>
> </Configuration>
>
> From This i basically need a java object mapping
>
> class Configuration{
>
> protected List<Data> SelectedDataList;
>
> }
>
> class Data{
> string id;
> int seq;
> }
>
> I am new to xsd so having little trouble in designing xsd which will
> result in above java-xml translation.
>
> Your help is appreciated.
>
> Thanks
> Anup
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03323 seconds