public static boolean isTypeElement(XmlTag xml) {
    final String localName = xml.getLocalName();
    return XmlUtil.XML_SCHEMA_URI.equals(xml.getNamespace()) && ("complexType".equals(localName) || "simpleType".equals(localName));
  }
public static boolean isTypeElement(XmlTag xml)