Java tutorial
//package com.java2s; import org.w3c.dom.Node; public class Main { public static String getSeriesIDforLine(Node linenode) { try { String lineid = linenode.getAttributes().getNamedItem("id").getFirstChild().getNodeValue(); return lineid; } catch (Exception eee) { return null; } } }