boolean (XmlElementDescriptor each) { XmlTag declaration = (XmlTag)each.getDeclaration(); if (declaration != null) { XmlTag complexType = declaration.findFirstSubTag("xs:complexType"); if (complexType != null) { if (complexType.findFirstSubTag("xs:sequence") != null) return true; } } return false; }