Here you can find the source of getNonEmptyAttribute(Element element, String namespace, String localName)
public static String getNonEmptyAttribute(Element element, String namespace, String localName)
//package com.java2s; import org.w3c.dom.Element; public class Main { public static String getNonEmptyAttribute(Element element, String namespace, String localName) { String value = element.getAttributeNS(namespace, localName); if (value == null || (value = value.trim()).length() == 0 || // "???" is a placeholder value often used by XMLmind XML Editor. "???".equals(value)) { value = null;//w w w .jav a2 s .c om } return value; } }