Java XML Element Get getElementName(Element element)

Here you can find the source of getElementName(Element element)

Description

Get the name of the element

License

Apache License

Parameter

Parameter Description
element a parameter

Declaration

public static String getElementName(Element element) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.w3c.dom.Element;

public class Main {
    /**/*ww w  .ja  v  a2s  . c om*/
     * Get the name of the element
     *
     * @param element
     * @return
     */
    public static String getElementName(Element element) {
        return element.getNodeName();
    }
}

Related

  1. getElementList(final Element element)
  2. getElementLocalName(Element element)
  3. getElementName(Class claz)
  4. getElementName(Class clazz)
  5. getElementName(Element element)
  6. getElementName(Element element)
  7. getElementName(Field field)
  8. getElementName(Object obj)
  9. getElementNameSansNamespace(Element element)