is it possible to get all website content into XML file ? means if i provided Website URL then it will get all website Content into XML file using JAVA.
if i give URL of this page then all content of this page will be in XML file.
is it possible to get all website content into XML file ? means if i provided Website URL then it will get all website Content into XML file using JAVA.
if i give URL of this page then all content of this page will be in XML file.
A very simplified approach do download a website (only static content) could be
// read the website from this URL
URL urlIn = new URL("http://www.example.com/index.html");
// save the content as file "/tmp/example.out"
Path pathOut = Paths.get("/tmp/example.out");
// read and write the data
Files.copy(urlIn.openStream(), pathOut, StandardCopyOption.REPLACE_EXISTING);