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

RE: Some comments on the 1.1 draft


RE:  Some comments on the 1.1 draft
> In what situations do naked control characters appear in
> text? Control
> characters are by definition control sequences.... I would
> generally consider
> it a BUG if my character sequences contained control characters.

This is unrealistic. They aren't your character sequences, they are
something that someone else put in a database donkey's years ago, and it's
your job to ship them somewhere else without asking any questions.

There's a purist approach, which says that once you move data using XML, you
have to label it properly, which means you either have to make sure it's
100% clean before transmitting it, or you have to label it as binary.

And there's a pragmatic approach, which says that the data is supposed to be
text, and I want the benefits of treating it as text, but if for any reason
a control character has kept in (perhaps due to inadequate input validation
when the data was first entered), then that's part of the data I've been
given and it's not my job to fix it, I'm only the messenger.

Mike Kay

PS: And of course there are some situations where control characters can
legitimately appear in text. Am I the only one who remembers putting a BEL
character in error messages and delighting as the teletype went "ping!"? The
joy went out of that when the bell was emulated by electronic beeps, but one
day, your database of 1960s classic software error messages is going to find
a BEL in it.



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.