get XML Node Name - Java XML

Java examples for XML:XML Node

Description

get XML Node Name

Demo Code


//package com.java2s;

import org.w3c.dom.Node;

public class Main {
    public final static String getElementName(Node child) {
        return child.getNodeName();
    }/*w  w  w.  jav  a  2s  .c om*/
}

Related Tutorials