Article View: borland.public.delphi.xml
Article #8596Re: SAX: characters function and parameters (roundup)
From: Robert Loof
Date: Fri, 20 Jul 2001 08:05
Date: Fri, 20 Jul 2001 08:05
56 lines
3061 bytes
3061 bytes
Jeff, > Great discussions, thanks all for the input! Thanks for the summary! > It seems that the decision points to using a WideString (or SAXString...) > instead of some type of buffer within the characters function: > > For Dynarray/Buffer > ============== > Jeff Rafter > Binh Ly > > For WideString/SAXString > ================== > Robert Loof > Mark Edington > Vincent Parrett > Keith Wood > RοΏ½mon Sinnema Hmm, I actually prefer characters(ch: PWideChar; length: Integer), with characters(WideString) as second choice. Both would be even better, using overloading and a property (as discussed earlier). I am experimenting with a parser at the moment, and will let you know as soon as I have some results (like everybody else, I am also trying to make a living <g>). I plan to release a high performance and fully compliant parser in the near future, and that will support whatever the group decides (in addition to its native API). > Ease of use (based on EVERYONE'S statements) leaves us the clear winner of > WideString/SAXString. Speed/Memory will depend on implementation (though if > parsers are maintaining back end buffers, as I am, for reuse and not > reallocating for each read, then the buffer model wins out hands down). > When someone steps up with a Gig of data we'll see what happens-- but I > think improving entry level for new XML'ers wins out in this case which > ultimately points to WideString/SAXString. You are probably right here, except that WideStrings have their own problems if you primarily use 8-bit encodings. What is your opinion on having two sets of interfaces, widestring and string based? It is up to component vendors to support them, so in the end the market will decide on the viability of this approach. > Does everyone agree with this roundup? Does anyone want to argue the > PWideChar/PSAXChar model (Would this provide a better way to typecast my > buffer as a WideString based on my internal start and length without > re-allocating)? Does anyone want to argue for the mixed function types with > a property? See above. All the best, Robert
Technical Details
Message-ID:
<3B57E650.8856EC28@phasis.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3b562472_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f5d9b,3d7fde4275c057d7 X-Google-Attributes: gidf5d9b,public X-Google-ArrivalTime: 2001-07-20 01:16:18 PST Message-ID: <3B57E650.8856EC28@phasis.com> Date: Fri, 20 Jul 2001 20:05:36 +1200 From: Robert Loof <robert@phasis.com> X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.delphi.xml Subject: Re: SAX: characters function and parameters (roundup) References: <3b562472_1@dnews> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 210.55.109.213 X-Trace: dnews 995616296 210.55.109.213 (20 Jul 2001 01:04:56 -0700) Lines: 56 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews