| Author |
JaxB conversion is taking too much time
|
Arun Vasu
Greenhorn
Joined: Oct 05, 2010
Posts: 22
|
|
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: 12267
|
|
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
|
|
|