- 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
-
Simple 2.1 - Java XML Serialization (10 messages)
- Posted by: Niall Gallagher
- Posted on: July 15 2009 08:39 EDT
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.Threaded Messages (10)
- 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 Raffaele Guidi on July 15 2009 16:49 EDT
-
Re: Simple 2.1 - Java XML Serialization by Niall Gallagher on July 15 2009 05:55 EDT
- Re: Simple 2.1 - Java XML Serialization by Raffaele Guidi on August 09 2009 07:10 EDT
-
Re: Simple 2.1 - Java XML Serialization by Niall Gallagher on July 15 2009 05:55 EDT
- Re: Simple 2.1 - Java XML Serialization by Raffaele Guidi on July 15 2009 16:49 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 Niall Gallagher on July 15 2009 14:42 EDT
- Re: Simple 2.1 - Java XML Serialization by Robert Smith on July 15 2009 20:00 EDT
- Re: Simple 2.1 - Java XML Serialization by Niall Gallagher on July 16 2009 03:24 EDT
- Hi, by Ming Shing on June 27 2011 07:06 EDT
- Nice library by jan de vries on December 30 2009 23:26 EST
-
Re: Simple 2.1 - Java XML Serialization[ Go to top ]
- Posted by: Bruce Fancher
- Posted on: July 15 2009 09:28 EDT
- in response to Niall Gallagher
-
Re: Simple 2.1 - Java XML Serialization[ Go to top ]
- Posted by: Raffaele Guidi
- Posted on: July 15 2009 16:49 EDT
- in response to Bruce Fancher
So what? -
Re: Simple 2.1 - Java XML Serialization[ Go to top ]
- Posted by: Niall Gallagher
- Posted on: July 15 2009 17:55 EDT
- in response to Raffaele Guidi
So, it answers the question.Do you have any public benchmark on that?
Thats what.. -
Re: Simple 2.1 - Java XML Serialization[ Go to top ]
- Posted by: Raffaele Guidi
- Posted on: August 09 2009 19:10 EDT
- in response to Niall Gallagher
So, it answers the question.
"So what" was meant for Bruce Fancher sayingDo you have any public benchmark on that?
Thats what..http://jibx.sourceforge.net/
-
Re: Simple 2.1 - Java XML Serialization[ Go to top ]
- Posted by: Istvan Soos
- Posted on: July 15 2009 10:29 EDT
- in response to Niall Gallagher
Hi Niall,Highly performant, using lightweight StAX to perform the XML deserialization process, faster than XStream and JAXB
This 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 -
Re: Simple 2.1 - Java XML Serialization[ Go to top ]
- Posted by: Niall Gallagher
- Posted on: July 15 2009 14:42 EDT
- in response to Istvan Soos
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 -
Re: Simple 2.1 - Java XML Serialization[ Go to top ]
- Posted by: Robert Smith
- Posted on: July 15 2009 20:00 EDT
- in response to Niall Gallagher
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. -
Re: Simple 2.1 - Java XML Serialization[ Go to top ]
- Posted by: Niall Gallagher
- Posted on: July 16 2009 03:24 EDT
- in response to Robert Smith
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. -
Hi,[ Go to top ]
- Posted by: Ming Shing
- Posted on: June 27 2011 07:06 EDT
- in response to Robert Smith
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.
-
Nice library[ Go to top ]
- Posted by: jan de vries
- Posted on: December 30 2009 23:26 EST
- in response to Niall Gallagher
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...