Advantage of using XML over text files

Is the only advantage that you can now create the XML files using a database, or a script, or something? Or is there something else?

Because reading the XML files (through AS) isn’t easy at all !!