Java tutorial
//package com.java2s; import org.w3c.dom.Element; public class Main { public static float getFloat(Element element, String attributeName) { return Float.parseFloat(element.getAttribute(attributeName)); } }