Java XML Element Get getElementId(Element element)

Here you can find the source of getElementId(Element element)

Description

get Element Id

License

Apache License

Declaration

public static String getElementId(Element element) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.w3c.dom.Element;

public class Main {
    public static String getElementId(Element element) {
        return element.getAttribute("id");
    }//from w w w  . j  av a2 s .c  o m
}

Related

  1. getElementContent(final Element element)
  2. getElementContent(final Element element, final boolean trim)
  3. getElementContents(Element element, String elementName)
  4. getElementDescendant(Element elem, String ns_uri, String tagName)
  5. getElementForLine(Document document, int line)
  6. getElementIndex(Element ele)
  7. getElementIndex(Element element)
  8. getElementLanguage(Element elemNode, String defaultLangCode)
  9. getElementLanguage(Element elemNode, String defaultLangCode)