XML Schema redefine
Element
Definition and Usage
The redefine
element allows for redefining simple and complex types, groups, and attribute groups obtained from external schema files within the current schema.
Element Information
- Parent Element: schema
Syntax
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element. |
schemaLocation | Required. A URI reference to the location of the schema document. |
any attributes | Optional. Specifies any other attributes with non-schema namespaces. |
Example 1
The following example shows a schema, Myschama2.xsd, which contains elements defined by Myschama1.xsd. The pname type is redefined. According to this schema, elements constrained by pname must end with the "country" element: