Java XML Node Local Name matchingLocalName(Node node, String requiredLocalName)

Here you can find the source of matchingLocalName(Node node, String requiredLocalName)

Description

matching Local Name

License

Apache License

Declaration

private static boolean matchingLocalName(Node node, String requiredLocalName) 

Method Source Code


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

import org.w3c.dom.*;

public class Main {
    private static boolean matchingLocalName(Node node, String requiredLocalName) {
        if (requiredLocalName == null) {
            return true;
        } else {// ww  w . ja  v  a 2s . c om
            String localName = node.getLocalName();
            return requiredLocalName.equals(localName);
        }
    }
}

Related

  1. getLocalName(Node node)
  2. getLocalName(Node node)
  3. getNodeLocalName(Node node)
  4. getNodeRecursive(Node node, String localName)
  5. isA(Node e, String ns, String localname)
  6. matchingLocalName(Node node, String requiredLocalName)