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%3A%2F%2Fsoiledlinenbags.com%2Finfectious_waste_bags.php&passThroughXHTML=1; 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%3A%2F%2Fsoiledlinenbags.com%2Finfectious_waste_bags.php&passThroughXHTML=1; lineNumber: 1; columnNumber: 3; The markup in the document preceding the root element must be well-formed.