XML is almost always misused
So, what <i>is</i> XML good for?  If it's not good for data as everyone says (and I'm not inclined to argue), but it is good for documents, what kind of documents are we referring to?  A defined metadata on a text document?  A template used with data to generate something else?  Is a configuration file a document or data?  Where would I want to use XML that something like JSON, a text document, or some combination thereof wouldn't be better?<p>I'm not being facetious, this is an honest question.  Where are the "right" places to use XML?