Here you can find the source of isExtension(Element element)
public static boolean isExtension(Element element)
//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); } }