• Post Reply Bookmark Topic Watch Topic
  • New Topic

Parsingof XML taking time

 
Vijay P
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using org.xml.sax.XMLReader.parse(Inputsource) to parse a large xml of size 1MB.
But it was talking 6 minutes of time, which is hitting the performance of the application.

Can anybody suggest is there any parsing techniques which will take less time to parse an xml of size around 1 MB.

Please help.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect that it is not the parsing that is taking 6 minutes, it is your application's treatment of the data.

I bet that with a do-nothing ContentHandler you would find actual parsing takes only a few seconds.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!