Here you can find the source of getElementAsInt(Element element)
public static int getElementAsInt(Element element)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Element; public class Main { public static int getElementAsInt(Element element) { return Integer.parseInt(element.getTextContent()); }/* w w w . j a v a 2 s .c om*/ }