Memory Leak

Changed 
XercesDOMParser *parser = new XercesDOMParser();
to 
XercesDOMParser parser;