Using org.apache.xerces.parsers.SAXParser Exception net.sf.saxon.trans.XPathException: org.xml.sax.SAXParseException; systemId: http://services.w3.org/tidy/tidy?docAddr=http://municipalite.saint-modeste.qc.ca/services_aux_citoyens/?id=stmodeste-habitation; lineNumber: 1; columnNumber: 3; The markup in the document preceding the root element must be well-formed. org.xml.sax.SAXParseException; systemId: http://services.w3.org/tidy/tidy?docAddr=http://municipalite.saint-modeste.qc.ca/services_aux_citoyens/?id=stmodeste-habitation; lineNumber: 1; columnNumber: 3; The markup in the document preceding the root element must be well-formed.