Here you can find the source of getAttributeTextContent(Node node, String attiribute_name)
public static String getAttributeTextContent(Node node, String attiribute_name)
//package com.java2s; //License from project: LGPL import org.w3c.dom.*; public class Main { public static String getAttributeTextContent(Node node, String attiribute_name) { Node attr = node.getAttributes().getNamedItem(attiribute_name); if (attr != null) { return attr.getTextContent(); }/*from ww w .ja v a 2 s . c o m*/ return ""; } }