Have now gotten a global array of sections that can be accessed that holds the information from the XML file. Need to write hooks into parsing and using the information, but the code is much improved now.