Java XML Element Get getElementAsInt(Element element)

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

Description

get Element As Int

License

Open Source License

Declaration

public static int getElementAsInt(Element element) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Element;

public class Main {
    public static int getElementAsInt(Element element) {
        return Integer.parseInt(element.getTextContent());
    }/*  w  w w  .  j a  v a 2 s  .c  om*/
}

Related

  1. getElement(final Document doc, final String expression)
  2. getElement(SOAPMessage message, String tagname, String nsURI, int whichOne)
  3. getElementArray(Element config, String elementName)
  4. getElementAsBoolean(Element e, String name)
  5. getElementAsFloat(Element e, String name, Float dft)
  6. getElementAttributeValue(Document doc, String tagName, String attributeName)
  7. getElementBooleanValue(Document document, Element parent, String element)
  8. getElementByClass(Element ele, String name)
  9. getElementByFilter(Document doc, NodeFilter filter)