Java Utililty Methods XML Element Find

List of utility methods to do XML Element Find

Description

The list of methods to do XML Element Find are organized into topic(s).

Method

ArrayListgetAllXmiIds(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");
...