• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is fastest XML parser ?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
Wat is fastest XML parser available in Opensource ?
most of my application job is about parsing and working with XML data,
Now i want to find fastest XML parser and use it.

Thanks
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you think that the first step in tackling your XML application is finding the fastest parser, you are seriously mistaken.
Instead think about these questions:
1. Will you have to validate the XML?
2. What is the largest XML document you will have to handle?
3. Do you have to write XML from scratch?
4. Modify an existing document and re-write it?
5. Is the application "stand-alone" with a single user?
6. Move data to and from a database?
... and probably a bunch more.

Just look at some of the recent discussions in the forum to see the variety of situations XML is used in.
Bill
 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

1. Will you have to validate the XML?


No i will not need to validate them as they are completely predicted XML

2. What is the largest XML document you will have to handle?


It is about 20K

3. Do you have to write XML from scratch?



Yes in ~20% of cases

4. Modify an existing document and re-write it?


yes i need sometimes to do this , about 10% of processing is in this kind

5. Is the application "stand-alone" with a single user?


No it is a J2ee Application , indeed these are some web services which will do all of this jobs which are related to XML and Database

6. Move data to and from a database?


Yes , it is a big part , i decide to use some XML databinding like JAXB 2 for this kind

Thank you for your help.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The time consumed in parsing a 20k XML file by any parser will be small compared to network and database delays. The JAXP parser classes built in to Java and used in J2EE should do a perfectly adequate job and have the advantage of using the same library that the rest of J2EE will be using.
Bill
 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does JaxP availabe in java EE 5 differ from jaxP available in j2ee 1.4 ?


thanks
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Does JaxP availabe in java EE 5 differ from jaxP available in j2ee 1.4 ?


I can't help you with that question as I have not kept up with J2EE changes.
Bill
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by raminaa niilian:
Does JaxP availabe in java EE 5 differ from jaxP available in j2ee 1.4?


Yes.
J2SE 1.5 includes JAXP 1.3 while J2SE 1.4 includes JAXP 1.2.
See XML Processing.
Sun�s implementation of JAXP 1.2 includes the Crimson Parser while JAXP 1.3 includes the Xerces parser. Usually Xerces is judged to be the superior one. See also Java[tm] API for XML Processing (JAXP):Frequently Asked Questions.
[ April 24, 2006: Message edited by: Peer Reynders ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic