672329 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

Performance and scalability Performance and scalability Performance and scalability Messages: 3 Messages: 3 Messages: 3 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

JAVA framework for XML data binding

Posted by: Basavaraj Devershetty on August 01, 2006 DIGG
We have a requirement to unmarshall very large file in JAVA.The size of the file is up to 10MB.Also the Schema validation against the XSD file

Currently,our choice is to use JiBX (http://jibx.sourceforge.net ) primary based on performance consideration.(see a pretty old performance tests at http://www-128.ibm.com/developerworks/xml/library/x-databdopt2/_

It takes less than 40s to validate a 10mb instead of 20mn with the XMLBeans library.

1-Do you have any suggestion of other JAVA framework which could perform as well as JiBX and which
are listed in the "core libraries" submitted to the domain council ?



- Thank you
Raj Devershetty
  Message #215325 Post reply Post reply Post reply Go to top Go to top Go to top

Re: JAVA framework for XML data binding

Posted by: Tatu Saloranta on August 10, 2006 in response to Message #214608
We have a requirement to unmarshall very large file in JAVA.The size of the file is up to 10MB.

...

takes less than 40s to validate a 10mb instead of 20mn with the XMLBeans library.

1-Do you have any suggestion of other JAVA framework which could perform as well as JiBX and which
are listed in the "core libraries" submitted to the domain council ?



- Thank you
Raj Devershetty


I don't know of anything significantly faster than JiBX (although you could try Jaxb 2 and see how it fares). But pure parsing speed of a 10 MB document is in the order of 1 second (using streaming parser, with properly warmed up JVM, from fast disk etc), as fastest streaming parsers can get up to, say, 30 MBps parsing throughput. So it would seem like you could do better than 40 seconds; and I'd expect Xerces to be able to parse + validate in just few seconds (assuming schema is cached and reused etc). You could perhaps profile binding to see where time is spent.

Not sure if above helps, but I thought it's good to know that there's no fundamental reason why binding could not be improved from said 40 seconds.

  Message #215942 Post reply Post reply Post reply Go to top Go to top Go to top

Re: JAVA framework for XML data binding

Posted by: Claude Clain on August 17, 2006 in response to Message #215325
I used JiBX 1.0.x on a project to load large XML documents of about 14 MB : it was taking like 4s to load the document on my development computer. This time was only with JiBX basic validation and no xsd validation though.

JiBX is a great framework and I had no problem using it. I can only recommend it.

Claude.

  Message #219353 Post reply Post reply Post reply Go to top Go to top Go to top

can we valdiate xml in jibx using xsd file??

Posted by: vishnu kalavakuru on October 03, 2006 in response to Message #215325
Can we validate xml file using schema in JIBX.If so what are the things we need to do. Could anybody help in that?

Thanks
vk

Recent active threads Recent active threads Recent active threads More More More
Oracle's Bold Plans for Java Bode Well
Sobel edge detection using Java Advanced Imaging
Using Restriction base in WSDL
BugTracker with Twitter Connector and Ajax Workflow Editor
Language-oriented Programming and Language Workbenches
More active threads »
Top posters of the weekTop posters of the weekTop posters of the week
This list contains the members who have made the most posts in all forums over the last 7 days:
  1. Reza Rahman
  2. James Watson
  3. brad mcevoy
  4. Alex Besogonov
  5. Peter Monks
Hot threads Hot threads Hot threads More hot threads More hot threads More hot threads

Object pooling is now a serious performance loss

Brian Goetz continues to lift the lid and peak into the inner workings of Java in Java Urban Performance Legends. In this article he exposes the fallacy behind some of the more common performance myths found in the annals of the JVM.
(92 comments, last posted March 14, 2008)

Beyond Java

Bruce Tate, author of Better, Faster Lighter Java and Bitter EJB has come out with a new book called Beyond Java. Bruce has an epiphany about the future of software development. Does it include Java?
(770 comments, last posted September 23, 2009)

Three forms of AJAX: solid, liquid and gas.

Looks like today AJAX concept have several interpretations. We can distinguish different approaches of AJAX integration. Can they co-exist within the same application? Can we talk about layered AJAX integration?
(68 comments, last posted May 08, 2008)

Design-Time API Promises to make Java more like VB

Artima has published a short article describing the Design-Time API for JavaBeans, which was recently approved as JSR 273. This API promises to bring VB-like ease to Java development, but may face a cultural bias among Java developers who tend to think more in terms of class libraries than components.
(226 comments, last posted February 01, 2010)

Will Sun be that target of a management buyout?

There is plenty of speculation today regarding a potential buyout of Sun Microsystems by Scott McNealy and Silver Lake Partners. How would privatization of Sun affect Java?
(16 comments, last posted May 15, 2009)
More hot threads »

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy      Powered by JIVE
Site Map