The issue is caused by backtracking used in the regexp to remove the xml prolog. Modifying the regular expression fixes the problem
The issue is caused by backtracking used in the regexp to remove the xml prolog. Modifying the regular expression fixes the problem