Using javax, you could extract the data via xpath queries with something like this:
DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
Document doc = docBuilder.parse(stream);
XPathFactory factory = XPathFactory.newInstance();
XPath xpath = factory.newXPath();
String name1 = (String)xpath.evaluate("/Files/File[1]/@Name", doc, XPathConstants.STRING);
String name2 = (String)xpath.evaluate("/Files/File[2]/@Name", doc, XPathConstants.STRING);
This is assuming your XML is loading from an inputstream in the stream variable. If you already have the XML as a string, you could convert that to a stream like this:
InputStream stream = new ByteArrayInputStream(xmlstring.getBytes("UTF-8"));
You could also load the XML directory from a url with:
Document doc = docBuilder.parse(url);
Note that you'll need at least these imports:
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.xml.xpath.*;