Java XML Element Get getElement(Element element, String name, int index)

Here you can find the source of getElement(Element element, String name, int index)

Description

get Element

License

Open Source License

Declaration

private static Element getElement(Element element, String name, int index) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Element;

public class Main {
    private static Element getElement(Element element, String name, int index) {
        return (Element) element.getElementsByTagName(name).item(index);
    }//from  www .  java2 s. c  o  m
}

Related

  1. getElement(Element el, String... path)
  2. getElement(Element elem, String name)
  3. getElement(Element elem, String path)
  4. getElement(Element element, boolean before)
  5. getElement(Element element, String name)
  6. getElement(Element element, String tag)
  7. getElement(Element element, String tagName)
  8. getElement(Element element, String tagName, String namespace)
  9. getElement(Element root, String name)