我读了一个外部xml,然后调用了刷新函数。怎么样?我的代码:
try {
URL url = new URL("http://humildadysoledad.es/APP/actuaciones.xml");
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new InputSource(url.openStream()));
doc.getDocumentElement().normalize();
NodeList nodeList = doc.getElementsByTagName("item");
// ...