Monday, October 11, 2004

When, XML as Data Format?

This is from the article The XML Litmus Test: Understanding When and Why to Use XML of Dare Obasanjo, we might want to understand.


XML is the appropriate tool for the job if the following criteria are satisfied by choosing XML as the data representation format for a given application.

1. there is a need to interoperate across multiple software platforms

2. one or more of the off-the-shelf tools for dealing with XML can be leveraged when producing or consuming the data

3. parsing performance is not critical

4. the content is not primarily binary content such as a music or image file

5. the content does not contain control characters or any other characters that are illegal in XML

If the expected usage scenario does not satisfy most or all of the above criteria then it doesn't make much sense to use XML as the data representation format for the situation in question.