DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(false);
DocumentBuilder builder = factory.newDocumentBuilder();
Document docs = builder.parse(new File(arquivoXML));
NodeList elements = docs.getElementsByTagName(tag);
Element el = (Element) elements.item(0);
String id = el.getAttributes("Id"); erro aqui no getAttribute!!
erro..
method getAttributes in interface Element cannot be applied to given types;
required: no arguments
found: String
reason: actual and formal argument lists differ in length
grato pela ajuda!!