В этом примере предполагается, что все данные находятся в корневом узле
DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
try {
DocumentBuilder builder = builderFactory.newDocumentBuilder();
try {
URL url;
url = new URL("http://yourURLhere.com" );
Document document = builder.parse(new InputSource( url.openStream()));
Element rootElement = document.getDocumentElement();
try{
//get the different xml fields here
Date xmlDateLastNotification = new Date(rootElement.getAttribute("dateLastNotification").toString());
String someOtherVariable = rootElement.getAttribute("xmlNode").toString();
}catch(Exception e){}
} catch (SAXException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}