Simple 2.1 - Java XML Serialization

Home

News: Simple 2.1 - Java XML Serialization

  1. Simple 2.1 - Java XML Serialization (10 messages)

    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.
    • 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
    Home: http://simple.sourceforge.net/ Tutorial: http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php Download: http://simple.sourceforge.net/download.php
  2. http://jibx.sourceforge.net/
  3. So what?
  4. So, it answers the question.
    Do you have any public benchmark on that?
    Thats what..
  5. So, it answers the question.

    Do you have any public benchmark on that?


    Thats what..
    "So what" was meant for Bruce Fancher saying
    http://jibx.sourceforge.net/
  6. 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
  7. 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
  8. 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.
  9. 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.
  10. Hi,[ Go to top ]

    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.

  11. Nice library[ Go to top ]

    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...