Article View: borland.public.delphi.xml
Article #122Re: TXMLDocument is memory hog, need alternatives
From: Andreas Tscharner
Date: Tue, 29 Jan 2008 06:58
Date: Tue, 29 Jan 2008 06:58
21 lines
2158 bytes
2158 bytes
Brian Thomas wrote: > Thus, I need an alternative. Someone at our company wrote a similar > routine using the FileStream classes and it is fast enough but he's > manually concatenating '<' and '>' to our elements. I would like > something fast but want something more structured so the code will > handle the elements/attributes like TXMLDocument does. Besides that, I > would like to be able to read the xml document without having to search > for '<' and '>' characters. Any ideas? I suggest libxml2 (from the GNOME project). Although aimed at Linux/Unix, there are also a Windows DLL and Delphi bindings. Concerning the performance, libxml2 is one of the fastest XML lib. See http://www.xmlsoft.org/ Best regards Andreas -- Andreas Tscharner andreas.tscharner@metromec.ch ------------------------------------------------------------------------ Real coders don't comment their code. It was hard to write, it should be hard to understand. -- from the Linux Kernel Mailinglist
Technical Details
Message-ID:
<479ecea2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<479be6fa$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f5d9b,e200cd528b61b17c X-Google-Attributes: gidf5d9b,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 29 Jan 2008 07:58:45 +0100 From: Andreas Tscharner <andreas.tscharner@metromec.ch> Organization: Wenzel Metromec AG User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 Newsgroups: borland.public.delphi.xml Subject: Re: TXMLDocument is memory hog, need alternatives References: <479be6fa$1@newsgroups.borland.com> In-Reply-To: <479be6fa$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.71.245.65 Message-ID: <479ecea2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1201589922 217.71.245.65 (28 Jan 2008 22:58:42 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail