Java XML Element Get Value getType(Element elementType)

Here you can find the source of getType(Element elementType)

Description

get XSI type attribute

License

Open Source License

Return

xsi type

Declaration

public static String getType(Element elementType) 

Method Source Code

//package com.java2s;
/*/*from   w w  w.  java  2  s.  c  o  m*/
 * Copyright (c) JenSoft API
 * This source file is part of JenSoft API, All rights reserved.
 * JENSOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

import org.w3c.dom.Element;

public class Main {
    /**
     * get XSI type attribute
     * 
     * @return xsi type
     */
    public static String getType(Element elementType) {
        return elementType.getAttribute("xsi:type");
    }
}

Related

  1. getTextWithoutTrim(Element elem)
  2. getTrimmedText(Element element)
  3. getTrimmedTextContent(Element element)
  4. getTrimmedTextContent(Element element)
  5. getTrimmedTextValue(Element valueEle)
  6. getUniqueElement(Element root, String elementName)
  7. getUniqueSubnode(Element rootNode, String name)
  8. getValue(Element e, String tagName)
  9. getValue(Element el)