Fast XML Parser

Can someone point me to a Free fast XML Parser. (TXMLDoc is not fast enough for me)

LVL 2
wqclatreAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Eddie ShipmanConnect With a Mentor All-around developerCommented:
Also see this page for more info on differences between SAX and DOM:
http://saxforpascal.sourceforge.net/index.html?saxdom.html
0
 
wildzeroCommented:
What about the one that comes with the Jedi component set?
Maybe could try write your own one?
0
 
wqclatreAuthor Commented:
Jedi?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
robert_marquardtCommented:
What do you really need? Full XML handling or just a syntactic parser?
JVCL see http://jvcl.sf.net
0
 
wqclatreAuthor Commented:
Full XML handling.
0
 
Wim ten BrinkSelf-employed developerCommented:
For full XML handling, the best solution is to just import the MSXML type library into your project and use it. MSXML is quite fast and provides a lot of functionality, including validations and transformations. there's NO Delphi-written XML parser that can compete with the speed of MSXML and still offer the same functionality. Or even the same speed and half the functionality of MSXML.

And yes, MSXML is free. It's a standard part of the newer Internet Explorer installations. (Since IE5 if I'm not mistaken.)
0
 
wqclatreAuthor Commented:
The msxml one is not fast enough in this case.
0
 
Wim ten BrinkSelf-employed developerCommented:
Still, MSXML would be the fastest solution I know. The reason for this is because Delphi tends to be too slow in it's string handling. Even if you would be using PChar strings instead of regular strings and optimize your parser as much as possible, you still would have problems to get an equal performance. A better solution might be to look for an XML parser that is written in C++ which you can call from a DLL. C++ has a better performance when handling strings, compared to Delphi.
0
 
Eddie ShipmanAll-around developerCommented:
Part of your speed problem may be that you are trying to use a validating parser.
Validation of the document takes up a significant amount of clock cycles.

I'd suggest you find a non-validating parser to do this or use a SAX-compliant
parser for speed.
0
 
Eddie ShipmanAll-around developerCommented:
Following along Workshop_Alex's suggestion, I would suggest the Xerces parser. I am searching for a Delphi interface.
0
All Courses

From novice to tech pro — start learning today.