Why is XML used for parsing data?

You dont have to use XML to parse data however SAX and DOM parsers in XML offer developers greater flexibility and speed in parsing.