Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)
| Tutorials - How to Explicitly Import an XML Schema |
Page 2 of 2 |
Definitions in an imported schema can also be used as the basis for new type or element definitions—just as if they had been defined in code.
Let’s say we’re working with an externally defined schema that starts out:

So, we’re working with a schema in the namespace “http://www.cretaceoussoftware.com/examples/add,” which is associated with the prefix “add.” If the schema contains this type definition…

…then we can use the type “Address” to declare an element like so:

This means that the type “office-suite” has a member element “location” of type “address” as defined in an external schema paired with the namespace “http://www.cretaceoussoftware.com/examples/add.”
|
|
|