aspose file tools
The moose likes XML and Related Technologies and the fly likes JaxB conversion is taking too much time Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "JaxB conversion is taking too much time" Watch "JaxB conversion is taking too much time" New topic
Author

JaxB conversion is taking too much time

Arun Vasu
Greenhorn

Joined: Oct 05, 2010
Posts: 13

Hi All,

I have an issue with XML conversion to java using JAXB. The scenario is,

I have to parse a huge xml file to java objects. The xml will hold 30000 complex types with each one holds about 20 string elements. While parsing, it is taking 4 minutes to convert it in to java.

Could somebody show me some light to reduce the time taken for this conversion ?

Thanks in advance,
Arun
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 364
Can you post some code that shows relevant portions of how you're passing the XML file to JAXB and how you're invoking unmarshal?
Also, how is your system using those java objects after unmarshaling?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11862
For maximum speed I would use SAX parsing and a whole lot of custom code. Very tedious.

Bill

Java Resources at www.wbrogden.com
 
 
subject: JaxB conversion is taking too much time
 
Threads others viewed
how to get XML form javaobject using JAXB
how to get xml from java object using JAXB
how to get XML from javaobject using JAXB
JaxB Class Declaration Imports
how to get XML from javaobject using JAXB
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture