How to transfer jaxb annotation to simpleXml library?

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

I went through these annotations in jaxb @XmlRegistry @XmlElementDecl and I need to convert it to simple xml annotations. Do you have an idea Also how to transfer the JAXBElement class to the simpleXml class?

Thanks in advance.

+6
source share
1 answer

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

JAX-B and Simple are two different structures. Thus, you need to make changes to the annotation in the existing JAX-B class and put simple equivalent annotations, or you can simply develop a new simple correspondence class see here .!

Learn more about SimpleXml annotations here .!

And there is no exact equivalent for

@XmlRegistry @XmlElementDecl 

but here is a detailed explanation of these annotations

It would be easier to answer if you posted the Xml sample, but still you can see here for SimpleXml examples that can shed light on your migration.

+2
source

Source: https://habr.com/ru/post/891525/


All Articles