[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Fast text output from SAX?


sax program output text
Elliotte Rusty Harold wrote:

> ...
> However, most processors of binary formats such as Word do not start 
> with the assumption that they are reading an arbitrary stream of 
> bytes. They assume they're reading data in a known format and build 
> assumptions about the format into their code. When those assumptions 
> are violated, the program heads south in unanticipated and potentially 
> damaging and dangerous ways. This is why it really bothers me when 
> processors attempt to gain speed compared to traditional XML parsing 
> by skipping well-formedness checks. This applies to both many binary 
> parsers and some so-called minimal parsers that process traditional 
> XML without checking for well-formedness.

Binary doesn't imply there isn't any well-formedness checking, obviously.
Incremental, or lazy evaluation, well-formedness is useful and 
potentially protects applications just as well as full well-formedness 
with better efficiency.
Allowing the application the option of avoiding repetitive or unncessary 
well-formedness checking is a valid strategy.  Your argument that data 
that a 'program' receives must always be fully validated in any 
situation could just as easily be extended to libraries and modules 
receiving DOM references or similar.  What one system may do with 
libraries or software modules, another may do with plugins and another 
may do with n-tier processing steps.  Does the granularity of the 
implementation somehow necessarily change the fundamental likelihood of 
corruption?

sdw

-- 
swilliams@h... http://www.hpti.com Per: sdw@l... http://sdw.st
Stephen D. Williams 703-724-0118W 703-995-0407Fax 20147-4622 AIM: sdw


begin:vcard
fn:Stephen Williams
n:Williams;Stephen
email;internet:sdw@l...
tel;work:703-724-0118
tel;fax:703-995-0407
tel;pager:sdwpage@l...
tel;home:703-729-5405
tel;cell:703-371-9362
x-mozilla-html:TRUE
version:2.1
end:vcard


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.