public void updateSchemaNamespace(String name) throws Exception { schema.setTargetNamespace(name); }
void setNamespaceAttributes(XmlSchema schema, Element schemaEl) { //no targetnamespace found ! if (schemaEl.getAttributeNode("targetNamespace") != null) { String contain = schemaEl.getAttribute("targetNamespace"); schema.setTargetNamespace(contain); } else { //do nothing here } if (validator != null) { validator.validate(schema); } }
void setNamespaceAttributes(XmlSchema schema, Element schemaEl) { //no targetnamespace found ! if (schemaEl.getAttributeNode("targetNamespace") != null) { String contain = schemaEl.getAttribute("targetNamespace"); schema.setTargetNamespace(contain); } else { //do nothing here } if (validator != null) { validator.validate(schema); } }
void setNamespaceAttributes(XmlSchema schema, Element schemaEl) { //no targetnamespace found ! if (schemaEl.getAttributeNode("targetNamespace") != null) { String contain = schemaEl.getAttribute("targetNamespace"); schema.setTargetNamespace(contain); } else { //do nothing here } if (validator != null) { validator.validate(schema); } }
private void initialize(ResolvedType resolvedType) { collection = new XmlSchemaCollection(); final boolean empty = currentElement.isEmpty(); // We use namespace of this element if (empty) { final String target = getTargetNamespace(resolvedType); schema = new XmlSchema(target, "raml-xsd", collection); schema.setTargetNamespace(target); } schema.setElementFormDefault(XmlSchemaForm.QUALIFIED); }
private void initialize(ResolvedType resolvedType) { collection = new XmlSchemaCollection(); final boolean empty = currentElement.isEmpty(); // We use namespace of this element if (empty) { final String target = getTargetNamespace(resolvedType); schema = new XmlSchema(target, "raml-xsd", collection); schema.setTargetNamespace(target); } schema.setElementFormDefault(XmlSchemaForm.QUALIFIED); }
.getAttribute("targetNamespace"); if (schema.getTargetNamespace() == null) { schema.setTargetNamespace(targetNamespace);
schema.setTargetNamespace(entry.getKey()); schema.setElementFormDefault(XmlSchemaForm.QUALIFIED); schema.setAttributeFormDefault(XmlSchemaForm.QUALIFIED);
schema.setTargetNamespace(entry.getKey()); schema.setElementFormDefault(XmlSchemaForm.QUALIFIED); schema.setAttributeFormDefault(XmlSchemaForm.QUALIFIED);
schema1.setTargetNamespace(schema.getTargetNamespace());
schema1.setTargetNamespace(schema.getTargetNamespace());