Removed non-related functions from xmlfile
Refactored getXMLType into getType
removed unused function
Moved outline handling into outline class