- Fully configurable XML structure defined via annotations, converts to and from concise human editable XML
- Constructor injection allows immutable objects to be serialized and deserialized
- Version capable framework allows both forward and backward compatible serialization
- Highly performant, using lightweight StAX to perform the XML deserialization process, faster than XStream and JAXB
- Full namespace support provided via namespace annotations
- Contains an XML templating system to allow expressions to be evaluated and substituted
- Provides persister callbacks to allow validation and interception of deserialization
- Fully self contained, other than StAX there are no external dependencies
- Open source, released under the terms of LGPL
The Simple XML serialization framework has released version 2.1. Simple is is a serialization framework for Java that enables rapid development with XML and Java. Unlike many XML binding frameworks that exist for Java, Simple offers truly polymorphic serialization. The framework contains the following features.
- Posted by: Niall Gallagher
- Posted on: July 15 2009 08:39 EDT
- Re: Simple 2.1 - Java XML Serialization by Bruce Fancher on July 15 2009 09:28 EDT
- Re: Simple 2.1 - Java XML Serialization by Istvan Soos on July 15 2009 10:29 EDT
- Re: Simple 2.1 - Java XML Serialization by Robert Smith on July 15 2009 20:00 EDT
- Nice library by jan de vries on December 30 2009 23:26 EST
So, it answers the question.
Do you have any public benchmark on that?Thats what..
So, it answers the question."So what" was meant for Bruce Fancher saying
Do you have any public benchmark on that?
Highly performant, using lightweight StAX to perform the XML deserialization process, faster than XStream and JAXBThis looks promising indeed (both JAXB and XStream). Do you have any public benchmark on that? Do you have benchmarked binary XML (e.g. fast infoset)? Regards, Istvan
Hi, I have performed some performance tests against JAXB which I will post on the site. It contains two large XML files which are serialized and deserialized, I will post the framework and results shortly. Niall
Niall - you mention support for namespaces, and I saw the NamespaceList and Namespace annotations. Looks promising. Have you had success writing Java classes and mapping them via Simple annotations to an existing schema? More to the point - I'm working with an XML database where we have XSDs to define the data, and I'm considering options for getting that data into Java objects that can be easily manipulated in an MVC framework (i.e. so I can easily bind HTML form data to the object, take advantage of JSP tags, etc etc). As far as code generators go, XMLBeans isn't very promising because it doesn't play nicely as a model object, and I've yet to revisit JAXB, but I believe that has a similar issue. I've looked at both Castor and XStream, but both seem to have issues with namespaces. So I'm wondering how good a solution Simple would be for this problem.
I've looked at both Castor and XStream, but both seem to have issues with namespaces. So I'm wondering how good a solution Simple would be for this problem.Simple certainly has better support for namespaces than XStream, however like XStream Simple is a serialization framework and does not have an XSD to Java transformation process. So you would have to write your own Java POJOs and map then to the database objects. The reason there is no XSD to Java process is because XSD is too restrictive when it comes to polymorphic object representation.
The use of Simple has several advantages. First, pass4sure JN0-332 it facilitates quick application development. pass4sure 642-631 Because Simple is so simple, it allows developers to quickly implement robust applications that use XML serialization & deserialization without committing to an excessive learning curve or development overhead pass4sure 642-874.
I dont like bumping old threads, but this is the most recent post of the Simple XML library. I registered 5 minutes ago just so i can post here to say its a very nice library :). It has clear examples, decent documentation and a nice overall design. After downloading i was able to use it within minutes. I don't want to step on any toes, but just for fun i looked at JiBX... i'm sure its a nice and powerfull library, but for me nothing beats adding a few lines of annotation. A very very long time ago i also tried xstream and some others, but those never really did what i needed at the time. In fact, after some experimenting i dropped xml in my communication layer of my server in favor of json partly because the libraries were cumbersome(for me) to use. I might not have if i had tried this one at the time...