Here you can find the source of getAttribute(Element element, String name)
public static String getAttribute(Element element, String name)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Element; public class Main { public static String getAttribute(Element element, String name) { String value = element.getAttribute(name); String safeValue = value.replace((CharSequence) "::", "$"); return safeValue; }/* ww w . j a v a 2 s. c o m*/ }