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

Re: My last on IE6 and XML

  • From: Tim Bray <tbray@t...>
  • To: xml-dev@l...
  • Date: Mon, 10 Sep 2001 13:13:08 -0700

characters that screw xml
A bit of correspondence off-list reveals that I'm not the only
person who regularly does the following: J. Random Hacker sends
me a chunk of something alleged to be XML.  First thing I usually
do is open it up in IE.  If it isn't XML, IE says so, and what 
the problem is, in a good and effective way.  If it is, I get 
that nice prettyprinted display so I can get a feel for the data.

For this app, this IE6 character-handling bug is particularly
horrible.  It isn't a corner case.  For a programmer generating
XML in C or Java or whatever, one of the easiest and most 
common mistakes to make [of course *I've* never done this :)]
is to screw up and get bogus character data in the output 
stream.  One of the nice side-effects of XML's intolerance of 
control characters is that this kind of screw-up very often 
leads to characters with values like 0 or 5 making their way 
into the XML, which bust well-formedness.  It is guaranteed
that expat or xerces or in fact a reasonably modern MSXML
will properly toss such data - and a good thing too, one
shudders at the thought of character data with null bytes
in the bowels of much of the C-family code out there.

Anyhow, Microsoft REALLY SHOULD FIX this one PDQ.  It's
bad. -Tim


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.