[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Fast text output from SAX?
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|