Java XML Node Local Name getNodeLocalName(Node node)

Here you can find the source of getNodeLocalName(Node node)

Description

get Node Local Name

License

Open Source License

Declaration

public static String getNodeLocalName(Node node) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Crown Copyright (c) 2006, 2007, Copyright (c) 2006, 2007 Jiva Medical.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * //from w  w w  . j  a  v  a 2s .c  o m
 * Contributors:
 *    Jiva Medical - initial API and implementation
 *    B2 International - added generateXMLString(DocumentFragment, boolean)
 *******************************************************************************/

import org.w3c.dom.Node;

public class Main {
    public static String getNodeLocalName(Node node) {
        String result = node.getLocalName();
        if (result == null)
            result = node.getNodeName();
        return result;
    }
}

Related

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