Java XML Element Check isExtension(Element element)

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

Description

is Extension

License

Open Source License

Declaration

public static boolean isExtension(Element element) 

Method Source Code

//package com.java2s;
/***************************************************************************
 * Copyright (c) 2006 Eike Stepper, Fuggerstr. 39, 10777 Berlin, Germany.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * /*  w w w.java  2 s.  c o  m*/
 * Contributors:
 *    Eike Stepper - initial API and implementation
 **************************************************************************/

import org.w3c.dom.Element;

public class Main {
    public static boolean isExtension(Element element) {
        String name = element.getAttribute("name");
        return "extension".equals(name);
    }
}

Related

  1. isElement(XMLStreamReader xmlRdr, int eventType, String tagName)
  2. isElementExistsByTagName(final Element element, final String tagName)
  3. isElementNamed(Element e, String ns, String localName)
  4. isEmpty(final Element el)
  5. isEmptyElement(Element el)
  6. isGateway(Element element)
  7. isHTMLElement(Element elem)
  8. isInfoNode(Element e)
  9. isLeaf(Element element)