Java XML Attribute Get getAttribute(Element element, String name)

Here you can find the source of getAttribute(Element element, String name)

Description

get Attribute

License

Open Source License

Declaration

public static String getAttribute(Element element, String name) 

Method Source Code

//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*/
}

Related

  1. getAttribute(Element element, String attributeName)
  2. getAttribute(Element element, String attributeName, float deflt)
  3. getAttribute(Element element, String attrName)
  4. getAttribute(Element element, String name)
  5. getAttribute(Element element, String name)
  6. getAttribute(Element element, String name)
  7. getAttribute(Element element, String name, String defaultVal)
  8. getAttribute(Element element, String namespace, String name)
  9. getAttribute(Element element, String nodeName)