Java XML Node Name isMatchNodeName(Node node, String node_name)

Here you can find the source of isMatchNodeName(Node node, String node_name)

Description

is Match Node Name

License

LGPL

Declaration

public static boolean isMatchNodeName(Node node, String node_name) 

Method Source Code


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

import org.w3c.dom.*;

public class Main {
    public static boolean isMatchNodeName(Node node, String node_name) {
        if (node == null || node_name == null)
            return false;
        return node.getNodeName().equals(node_name);
    }//from   w w w  . jav a  2  s.  c  o  m
}

Related

  1. getTagName(Node node)
  2. getTagName(Node tag, boolean useJsfcTags)
  3. getTagNameWithoutPrefix(Node node)
  4. getTifDimension(Node node, String nodeName)
  5. getUnqualifiedNodeName(org.w3c.dom.Node node)