XMLParser fixed for recursion