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

Re: XML and Using It With Whitespace

  • From: Tim Bray <tbray@t...>
  • To: Chris Smith <smith@i...>, xml-dev@i...
  • Date: Tue, 06 Jan 1998 18:56:52 -0800

Re: XML&#32;and&#32;Using&#32;It&#32;With&#32;Whitespace
At 02:06 AM 05/01/98 -0500, Chris Smith wrote:
>That doesn't mean I'm abandoning the idea - the message authentication
>we're doing is important enough to the application that I'm prepared
>to sacrifice the use of all the parsers to get the above behaviour.

Hmm, I'm failing to get some aspect of your problem.  Maybe I
bypassed a message in which you explained it.  It is clear that
*any* conformant parser must give you all the whitespace in the
message.  It may also send a side-note along telling you that it's
not significant, but you always get it or else you're perfectly
justified in complaining to your processor author.  This has the
nice effect that the amount of whitespace you get from the processor
is guaranteed to be the same whether it's using a DTD or not.

Now, the downside of this is that you can't do 

<msg>
 <field1 val='1'/>
 <field2 val='2'/>
 </msg>

and have that treated as identical to

<msg><field1 val='1'/><field2 val='2'/></msg>

i.e. no auto-magic facility to ignore pretty-printing.
No XML processor in the world, regardless of the DTD in play is allowed
to refrain from passing you the line-breaks and spaces in the
first example.

Probably I'm missing something... what is the missing piece from
your point of view? -T.

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/
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-2011 All Rights Reserved.