I wrote a magic/xml tutorial. It documents how to use magic/xml to load, build, and query XML documents. I tried to limit it to the most important things.
Enjoy the tutorial, and if you have any questions, just ask :-)
The best kittens, technology, and video games blog in the world.