How to solve the error convert String date from xml file to an int format?
问题 I also find myself facing the date problem today, I extracted the date from an xml file in string format but when I try to convert it into an int format I have an error. This is a part of my code : DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(inputFile); doc.getDocumentElement().normalize(); System.out.println("Root element :" + doc.getDocumentElement().getNodeName()); NodeList nList = doc.getElementsByTagName("top"); for (int j=0; j<= inputFile