Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Fast XML Parser

Posted on 2007-04-01
10
Medium Priority
?
686 Views
Last Modified: 2010-08-05
Can someone point me to a Free fast XML Parser. (TXMLDoc is not fast enough for me)

0
Comment
Question by:wqclatre
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +2
10 Comments
 
LVL 10

Expert Comment

by:wildzero
ID: 18834808
What about the one that comes with the Jedi component set?
Maybe could try write your own one?
0
 
LVL 2

Author Comment

by:wqclatre
ID: 18834961
Jedi?
0
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 18834976
What do you really need? Full XML handling or just a syntactic parser?
JVCL see http://jvcl.sf.net
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Author Comment

by:wqclatre
ID: 18835286
Full XML handling.
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 18849036
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
 
LVL 2

Author Comment

by:wqclatre
ID: 18849075
The msxml one is not fast enough in this case.
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 18849131
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
 
LVL 26

Expert Comment

by:EddieShipman
ID: 18875661
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
 
LVL 26

Expert Comment

by:EddieShipman
ID: 18875687
Following along Workshop_Alex's suggestion, I would suggest the Xerces parser. I am searching for a Delphi interface.
0
 
LVL 26

Accepted Solution

by:
EddieShipman earned 2000 total points
ID: 18875726
Also see this page for more info on differences between SAX and DOM:
http://saxforpascal.sourceforge.net/index.html?saxdom.html
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question