removing duplicate methods. Now we can use the old parse xml method with similar protection by using temp folder