Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- URL searchPage = new URL(url_kid);
- Class.forName("com.mysql.jdbc.Driver");
- String url = "jdbc:mysql://localhost:3306/Lekrea";
- Connection conn = DriverManager.getConnection(url,"root","root");
- Statement str = conn.createStatement();
- InputStream buffer = searchPage.openConnection().getInputStream();
- DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
- DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
- Document doc_kid = dBuilder.parse(buffer);
- doc_kid.getDocumentElement().normalize();
- int del = str.executeUpdate("DELETE FROM product");
- NodeList listOfPersons = doc_kid.getElementsByTagName("product");
- String brand_value = null;
Add Comment
Please, Sign In to add comment