Here you can find the source of getIntAttribute(Element el, String name)
public static int getIntAttribute(Element el, String name)
//package com.java2s; import org.w3c.dom.Element; public class Main { public static int getIntAttribute(Element el, String name) { String s = el.getAttribute(name); if (s != null && s.length() > 0) { return Integer.parseInt(s); }// www . jav a 2s. c om return 0; } }