In this Video i used DOM to generate simple XML file form php.
Functions coverd
1.CreateElement() to create Node
2.appendChild() to append child to parent
3.setAttribute() to set attribure to any node
4.save() to save XML to local directory
Video on Creating dynamic xml file in php
• Creating dynamic XML in PHP