XML is very good for documents and other structured content formats. The problem is people took XML and used that for things that aren't really documents. That led to a lot of people hating XML for the things it wasn't good at and thus hating XML even for the things it is good at.
I wish we could find a reasonable middle ground. I'd love to have a job where I work a lot more with XML to be honest!