var page = UrlFetchApp.fetch(contestURL); var doc = XmlService.parse(page);
The above code gives a parse error when used, however if I replace the
Natively there's no way unless you do what you already tried which wont work if the html doesnt conform with the xml format.