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

Re: Why would MS want to make XML break on UNIX, Perl, Python


python text utilities
On Thu, Dec 20, 2001 at 03:54:02PM +1100, Rick Jelliffe wrote:
> Sure, lets make XML unsuitable for use in UNIX pipes by allowing ^D.
> And for Perl and Python text-processing programs that use standard in and 
> expect EOF (^D or ^Z).

I cannot speak for all of the languages, but you certainly can send ^D
down a UNIX pipe. I think you are mixing up the tty processing of human
input and what is implemented in the OS/programming language. I don't
think many people will by typing in XML documents by hand down a pipe! :-)
Oh, and with UNIX I think you can send a ^D anyway by typing ^V^D
(depending on your shell).

I think if you said NUL your arguments may be stronger. I have less
confidence utilities like 'grep' would work correctly with a file
with NUL bytes in them. I agree that a strength of XML is that lots
of existing non-XML text utilities (grep, awk, per, etc) can be used
(carefully!!!) with XML. Allowing control characters directly in
the text stream would surely make one of them break.

Of course if you used � to encode NUL in text then that would not
be an issue. But I dislike this because its not in line with SGML.
I guese there is always the PI proposal - that is, use processing
instructions for control characters. This could be done as a SOAP
convention, for example. But it feels distinctly grungy.

Alan

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.