boolean (final XmlTag parentTag, final XmlElementDescriptor parentDescriptor, final XmlElementDescriptor childDescriptor, String childNamespace, boolean strict) { if (XmlUtil.nsFromTemplateFramework(childNamespace)) return true; if (parentTag == null) return true; if (parentDescriptor == null) return false; String name = childDescriptor.getName(); if (name == null) return false; final XmlTag childTag = parentTag.createChildTag(name, childNamespace, null, false); childTag.putUserData(XmlElement.INCLUDING_ELEMENT, parentTag); XmlElementDescriptor descriptor = parentDescriptor.getElementDescriptor(childTag, parentTag); return descriptor != null && (!strict || !(descriptor instanceof AnyXmlElementDescriptor)); }