Cleaned up XML, Made better function for identifying node name