private XmlSchemaAll handleAll(XmlSchema schema, Element allEl, Element schemaEl) { XmlSchemaAll all = new XmlSchemaAll(); //handle min and max occurences all.minOccurs = getMinOccurs(allEl); all.maxOccurs = getMaxOccurs(allEl); for (Element el = XDOMUtil.getFirstChildElementNS(allEl, XmlSchema.SCHEMA_NS); el != null; el = XDOMUtil.getNextSiblingElementNS(el, XmlSchema.SCHEMA_NS)) { if (el.getLocalName().equals("element")) { XmlSchemaElement element = handleElement(schema, el, schemaEl, false); all.items.add(element); } else if (el.getLocalName().equals("annotation")) { XmlSchemaAnnotation annotation = handleAnnotation(el); all.setAnnotation(annotation); } } return all; }
private XmlSchemaAll handleAll(XmlSchema schema, Element allEl, Element schemaEl) { XmlSchemaAll all = new XmlSchemaAll(); //handle min and max occurences all.minOccurs = getMinOccurs(allEl); all.maxOccurs = getMaxOccurs(allEl); for (Element el = XDOMUtil.getFirstChildElementNS(allEl, XmlSchema.SCHEMA_NS); el != null; el = XDOMUtil .getNextSiblingElementNS(el, XmlSchema.SCHEMA_NS)) { if (el.getLocalName().equals("element")) { XmlSchemaElement element = handleElement(schema, el, schemaEl, false); all.items.add(element); } else if (el.getLocalName().equals("annotation")) { XmlSchemaAnnotation annotation = handleAnnotation(el); all.setAnnotation(annotation); } } return all; }
private XmlSchemaAll handleAll(XmlSchema schema, Element allEl, Element schemaEl) { XmlSchemaAll all = new XmlSchemaAll(); //handle min and max occurences all.minOccurs = getMinOccurs(allEl); all.maxOccurs = getMaxOccurs(allEl); for (Element el = XDOMUtil.getFirstChildElementNS(allEl, XmlSchema.SCHEMA_NS); el != null; el = XDOMUtil .getNextSiblingElementNS(el, XmlSchema.SCHEMA_NS)) { if (el.getLocalName().equals("element")) { XmlSchemaElement element = handleElement(schema, el, schemaEl, false); all.items.add(element); } else if (el.getLocalName().equals("annotation")) { XmlSchemaAnnotation annotation = handleAnnotation(el); all.setAnnotation(annotation); } } return all; }