Here you can find the source of getStringAttributeValue(final Element element, final String attributeName)
public static String getStringAttributeValue(final Element element, final String attributeName)
//package com.java2s; /*//from ww w .j av a 2s. co m * Copyright (c) 2000-2002 INSciTE. All rights reserved * INSciTE is on the web at: http://www.hightechkids.org * This code is released under GPL; see LICENSE.txt for details. */ import org.w3c.dom.Element; public class Main { /** * @see #getDoubleAttributeValue(Element, String) */ public static String getStringAttributeValue(final Element element, final String attributeName) { if (null == element) { return null; } final String str = element.getAttribute(attributeName); return str; } }