XML and Using It With Whitespace

David Megginson ak117 at freenet.carleton.ca
Wed Jan 7 11:44:18 GMT 1998


Tim Bray writes:

 > 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.

True, but with a DTD and a DTD-aware XML parser, your application can
easily choose discard that additional whitespace.


All the best,


David

-- 
David Megginson                 ak117 at freenet.carleton.ca
Microstar Software Ltd.         dmeggins at microstar.com
      http://home.sprynet.com/sprynet/dmeggins/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list