List of utility methods to do XML Element Find
ArrayList | getAllXmiIds(Element rootElement, String elementName) get All Xmi Ids ArrayList<String> xmiIdList = new ArrayList<String>(); Element element = null; String xmiId = null; NodeList nodeList = rootElement.getElementsByTagName(elementName); if (nodeList != null) { for (int nodeIndex = 0; nodeIndex < nodeList.getLength(); nodeIndex++) { element = (Element) nodeList.item(nodeIndex); xmiId = element.getAttribute("xmi.id"); ... |