Re: [Simple-support] Information about Simple Framework and Tools
Brought to you by:
niallg
|
From: Eduardo M. <emm...@gm...> - 2011-02-25 13:13:41
|
Hi, is there someone kind to reply? -- Eduardo .............................................. http://emmartins.blogspot.com http://redhat.com/solutions/telco On Thu, Feb 17, 2011 at 12:02 PM, Eduardo Martins <emm...@gm...> wrote: > Hi, I'm currently evaluating the replacement of JAXB with Simple, and > need some information, which I couldn't find in the website: > > 1) Is there a tool similar to xjc, which takes xsd as input and > produces the pojos? > > 2) Is Simple able to mix different set of pojos, bound to different > namespaces? For instance consider a schema which has an element that > can be extended with another qualified element, such as > > <xs:any namespace="##other" processContents="lax" minOccurs="0" > maxOccurs="unbounded"/> > > Now we throw some xml to Simple for deserialization, and in that "any" > position comes an element bound to another set of Simple pojos, with > different namespace(s), will the framework deserialize that element > too into its own pojos? > > 3) Regarding serialization, and this is the major reason why I'm > considering to leave JAXB, when there is a JAXBContext bound to > multiple namespaces, the serialized xml root element will be "bloated" > with all possible namespaces, even if there are no children elements > with these namespaces. How does Simple handles such cases, same > procedure as jaxb? Includes in root element only the uses namespaces? > Declares "children" namespaces in all children elements, thus > introducing multiplies declarations of same namespaces? > > Thanks in advance. > > -- Eduardo > .............................................. > http://emmartins.blogspot.com > http://redhat.com/solutions/telco > |