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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] [Summary] Media type (MIME) of XML in MS Word? in Notepad?

[ Lists Home | Date Index | Thread Index ]

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




 

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

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