Removed redundant Util class initializations
Removed type check when printing xml localtions
Created single method for redundant location printing
Minor edits