ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] Internal entities removed from XML?
by Rich Salz other posts by this author
Dec 20 2002 12:09PM messages near this date
Re: [xml-dev] Internal entities removed from XML? | Re: [xml-dev] Internal entities removed from XML?
>  Here is a version of Rich's C code that is exactly the same speed-efficiency if there
>  are no entity references, and no less space-efficient if there are entity
>  references. If we find a non-built-in reference, we replace the
>  & delimiter with the Unicode Object Replacement character.

Sure, you made *my* code as efficient, but you made applications less
efficient by requiring them to handle multiple calls for chardata.
My code was only a sample -- I left out the " and didn't normalize
space or newlines, but the technique is the same.

As I responded to Miles, the (dedicated?) application greatly benefits from
knowing that the chardata is all in a single buffer, available all at once.

Gotta think outside the SAX box.
        /r$


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Dare Obasanjo
Rick Jelliffe
Rich Salz
Miles Sabin
Rich Salz
Rick Jelliffe
Rich Salz
Miles Sabin
Rich Salz
Tim Bray
Miles Sabin
Miles Sabin
Miles Sabin
Miles Sabin
Tim Bray
Rick Jelliffe
Rick Jelliffe
Rich Salz
Rick Jelliffe
Rick Jelliffe
Mike Champion
Rich Salz
=?ISO-8859-15?Q?Bill_de_h=D3ra?=
Mike Champion
=?UTF-8?B?QmlsbCBkZSBow5NyYQ==?=
Mike Champion
Tim Bray
Thomas B. Passin
Mike Champion

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved