Pages: 1
Print
Author Topic: .DITA vs .XML  (Read 6255 times)
mtbowers
Member

Posts: 9


« on: July 11, 2011, 02:08:19 PM »

Is there a benefit of saving in one format or the other? Our company has historically saved in the .DITA format; however, I'm not sure why this was initially adopted over .XML. Insight into either format would be appreciated. Thanks!
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: July 11, 2011, 03:04:07 PM »

If you are working with DITA documents then you can use either extension and it should not make a difference (in theory you can use any other extension you like as well). When you save from XMetaL Author Enterprise the content of the file is not altered when you choose one file extension over the other (the file is still XML and if you were authoring a DITA document it will also be DITA). The file extension in this case is merely a personal choice. However, depending on which tools you are using to author and process these files you might wish to select one extension over the other.

Essentially I'm discussing the difference between XML "in general" versus an "application of XML" (in this case DITA).
Compare these:
XML Recommendation
DITA Specification

Many different types of documents other than DITA also follow the XML Recommendation and are therefore also XML files. These document types are sometimes given the extension .xml in file names (including DocBook, S1000D, TEI, XHTML, and many others).

Some people opt to use .dita when working with DITA documents because it allows these file types to be easily differentiated from any other XML documents they might have lying around. Many programs use XML for storing data (and not documents) and so performing a simple search for file names with the extension .xml on your local machine might turn up various files that are being used to store software settings, data or other information that is of no interest to you. If this might be a problem the easiest way to avoid finding these other files is to store yours in a well-known location (folder), but giving them a different file extension can also help.

Some people also choose to give their DITA map files a special file extension (.ditamap) in order to differentiate them further from their DITA topic files.

Note that when a CMS system is being used in conjunction with XMetaL Author Enterprise the CMS might dictate file naming conventions.
Logged
Pages: 1
Print
Jump to:  

email us