One method that you might want to try is by direct experimentation. Inkscape is an open source SVG editor that lets you directly view and manipulate the XML tree while editing graphically. So in this way, you can experiment with things and see how they affect the XML that gets generated.