Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to port jaxb annotation to simpleXml library?

I am using Simple xml library to port Jaxb annotations into android. http://simple.sourceforge.net/home.php

I came accross this annotations in jaxb @XmlRegistry @XmlElementDecl and I have to convert it into simple xml annotations. Do u have any idea ?? Also how to port JAXBElement class into simpleXml's class??

Thanks in advance.

like image 939
anddev17_s Avatar asked Jun 28 '11 08:06

anddev17_s


1 Answers

anddev17_s, to answer your question straight. No you cannot just convert a JAX-B detail class into SimpleXml detail class.

JAX-B and Simple are two different framework. So you need to make changes to the annotation in your existing JAX-B class and put an Simple equivalent annotations or you can just develop a new Simple compliant detail class refer here.!

For more details on SimpleXml annotations refer here.!

And there is no exact equivalent for

@XmlRegistry @XmlElementDecl

but here is a detail explanation for these annotations

It would have been easier to answer if you had posted a sample Xml but still you can refer here for SimpleXml examples which can shed some light on your migration.

like image 69
Adheep Mohamed Abdul Kader Avatar answered Oct 05 '22 18:10

Adheep Mohamed Abdul Kader