Java XML Attribute Get getBeanclassAttribute(Node node)

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

Description

get Beanclass Attribute

License

Open Source License

Declaration

public static String getBeanclassAttribute(Node node) 

Method Source Code

//package com.java2s;
/*-/*  w  w  w  .j a v a2  s.c o  m*/
 * Copyright (C) 2011-2014 by Iwao AVE!
 * This program is made available under the terms of the MIT License.
 */

import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

public class Main {
    public static String getBeanclassAttribute(Node node) {
        if (node != null) {
            NamedNodeMap attributes = node.getAttributes();
            Node beanclassAttribute = attributes.getNamedItem("beanclass");
            if (beanclassAttribute != null) {
                return beanclassAttribute.getNodeValue();
            }
        }
        return null;
    }
}

Related

  1. getAttrVal(final NamedNodeMap nnm, final String name)
  2. getAttrValue(NamedNodeMap attrs, String attrName)
  3. getAttrvalue(Node item, String name, boolean ignoreNs)
  4. getAttrValue(Node n, String name)
  5. getAttrValuesByName(Element ele, String attributeName)
  6. getBool(Element el, String attrName, boolean defaultValue)
  7. getBoolAttribute(NamedNodeMap namedNodeMap, String name)
  8. getBoolAttribute(Node node, String attr)
  9. getBoolAttribute(Node node, String name)