[Home] [By Thread] [By Date] [Recent Entries]


I still think the Word and .DOC material is wrong.

Say I have an xml document
<?xml version="1.0"?>
<x/>

If I take an XML document and embed it in an HTML document like
 
<html>
 <body>
<pre>
   &lt;?xml version="1.0"?>
  &lt;x/>
</pre>
</html>

Then the document being saved is text/html and not XML. The data is XML 
but the notation is HTML.

Similarly, if I take the same XML document and paste it as text into 
Word and save as .DOC (or even as ODF!) I don't get an XML file. I get a 
Word file, and it is not meaningful to speak of the file as an XML 
document. Similarly, if I save to PDF then the document is PDF not XML; 
the mime content type gives the notation used to transmit the data, not 
any notations at play inside the data content literals.

The separation between data and notation is important. If people start 
thinking they can use .DOC as an archive format for XML, God help us all.

Cheers
Rick

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member