PDA

View Full Version : XML Parser component for Delphi



Harry Hunt
25-07-2004, 06:54 PM
Hey everybody!
I wrote an XML parser component for Delphi today and thought "what the hell, I might as well make this open source"...

So if you need an XML parser for your game or app, you might want to check this out:

The component can parse any XML 1.0 compliant document and turn it into a tree like structure (actually collections within collections, kinda like TTreeView does it). The parser also has a built-in validator that can detect incorrect XML code before it can cause problems.
The parse is super easy to use (Load the XML file into the lines property of the component and call execute), pretty fast and very reliable.

It's only about 700 lines of well commented code so if you want to adjust the component to your needs, that shouldn't be a problem.


Download here: http://hosted.xcessred.com/txmlparser

The zip file contains a demo and a readme file with information on how you can contact me to report bugs (this is a beta version).

Have fun, tell me what you think and let me know if you improve it.