How to Work with XML Templates
I decided to implement a XML couple template functions. Rather than reading the single XML file and using dot notation for every element I created a bunch of XML files to use as templates. Each XML file represents an individual XML element. When I need to insert a common XML element into the XML document I'm now just reading the XML template file and replacing what I want. It's much cleaner.