Here you can find the source of getAttributeAsInteger(Element element, String attrName, Integer defValue)
public static final Integer getAttributeAsInteger(Element element, String attrName, Integer defValue)
//package com.java2s; import org.w3c.dom.Element; public class Main { public static final Integer getAttributeAsInteger(Element element, String attrName, Integer defValue) { try {/*from w w w .j a va2s .com*/ return Integer.valueOf(element.getAttribute(attrName)); } catch (Exception ex) { } return defValue; } }