how important is xml?

and what kind of things does it get used for? This sounds like a stupid question but I just started making a photogallery and I wondered if xml is really so iportant and what its benefits and things like that!

I want to get into flash and director is php and xml essential to progress??