In my app I read an xml online using following code and it works fine:
URL url = new URL("http://dl.1kolbe.ir/adv.xml");
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new InputSource(url.openStream()));
doc.getDocumentElement().normalize();
NodeList nl = doc.getElementsByTagName("item");
Node node = nl.item(i);
Element fstElmnt = (Element) node;
NodeList nameList = fstElmnt.getElementsByTagName("title");
Element nameElement = (Element) nameList.item(0);
nameList = nameElement.getChildNodes();
final String adv_title = ((Node) nameList.item(0)).getNodeValue();
but when I change xml data on the server, my app display old xml data. I think I have to clear something like cache, but I don't know how!