I’m looking for a xml component/Library which supporting Delphi 2009.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Delphi ships with TXMLDocument, which is a wrapper that lets you choose between MSXML, Open XML and Xerces XML.
I just import Microsoft’s MSXML and use it directly.
Under Component|Import Component…, select Type Library and browse to Microsoft XML. I recommend 6.0, but you can use 4 if you like. Avoid 3 as it wasn’t very compliant with the XML standard and very early versions leak memory, and version 5 is only available with Office.
Update
If speed is a big concern, you might want to take a look at SAX (Simple API for XML), which streams the XML instead of building the DOM in memory. This used to be included in MSXML, but I thought I read somewhere that it had been removed in version 6. I usually use the DOM, so I can’t recommend a specific SAX parser, but a quick search on SourceForge returns some options.