OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: XML and Using It With Whitespace

[ Lists Home | Date Index | Thread Index ]
  • From: Tim Bray <tbray@textuality.com>
  • To: Chris Smith <smith@interlog.com>, xml-dev@ic.ac.uk
  • Date: Tue, 06 Jan 1998 18:56:52 -0800

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@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS