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

RE: Unix/Java design issues (Was: Re: Is CDATA "structure"?)

  • From: Tom Otvos <tom.otvos@p...>
  • To: 'Nik O' <niko@c...>, "'xml-dev@i...'" <xml-dev@i...>
  • Date: Wed, 21 Jul 1999 10:45:52 -0400

java cdata
> 
> I originally brought this up re "XML's [specified] auto-conversion of
> CRLF-delimited text records to LF-delimited records".  My 
> concern is that, given Microsoft's market dominance, much of the XML text
that will be
> generated in the near future (or that what comes from legacy 
> data) will use the CRLF delimiter.  When an XML-compliant parser replaces 
> these characters with a single LF, the data will no longer be 
> viewable/editable with simple MS-Windows text tools (e.g. Notepad).  Also,
the original XML data is
> replaced by a converted form (let's ignore entity expansion for the
moment).
> Whilst i'd be the first to concede that LF-delimited data is more compact,
> and easier to parse, i also tend to be conservative (in the literal sense)
> about data handling.  Was this data conversion specified in XML 1.0 so as
to
> be ISO-compliant?  Couldn't have all three common flavors of text
delimiter
> (CR, LF, and CRLF) have been allowed/supported/preserved?  Or am i missing
> some significant design consideration here?
> 

When I started this thread, it was precisely this issue that I was trying to
solve.  Basically expat is (correctly!) condensing all the various types of
end-of-line delimiters and feeding my application LFs.  Since my documents
are created on Macs and PCs, that caused me a bit of grief, which I ended up
dancing around by using multiple CDATA sections and entity-encoding CRs.
This works great in my application, but when I view it in something like
Notepad, or any XML editor that treats CDATA as structure, the CDATA
sections add a lot of visual noise.

-- tomo

Tom Otvos
Director of Research, Pervasive Software Inc.
"Try not! Do, or do not. There is no 'try'." - Yoda

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.