XML Schema Import

HALE supports loading schemas from XML Schema Definition (XSD) files. XML elements and types will be analyzed in a given schema file, as well as in the included and imported additional schemas. Complex properties are supported, as well as cycles, substitutions, groups and choices.

Initially, only types from the main schema will be classified as mapping relevant types, if you find any types missing, you can customize the list of mapping relevant types.

Deal with multiple XML schemas

A restriction on the XML schema import is that only one XML schema can be loaded as source or target schema. If you want to load multiple XML schemas, please create a schema including or importing the XML schemas you want to combine. However, combining importing an XML schema with other types of schemas is possible.

Combining two XML schemas through imports is done following this pattern:

<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:import1="http://yournamespace.com/import1" xmlns:import2="http://yournamespace.com/import2" elementFormDefault="qualified" targetNamespace="http://yournamespace.com/combined"> <import namespace="http://yournamespace.com/import1" schemaLocation="http://schemas.yourserver.com/YourSchemaImport1.xsd" /> <import namespace="http://yournamespace.com/import2" schemaLocation="http://schemas.yourserver.com/YourSchemaImport2.xsd" /> </schema>

Troubleshooting XML Schema Loading

In case an error message pops up during schema loading or is contained in the Error Log or the schema loading report, some problem occurred while parsing it. Most of the time, these issues are due to referenced schemas not being accessible. This may be the case when your schema references online resources, but you currently don't have a connection. Also, you might have relative or absolute paths in the schema locations used, that are not valid on your machine.

Another issue that frequently prevents loading of schemas is the presence of a proxy server. If your network requires the usage of one, please configure the proxy server setting by going to the Window menu and choose Settings. Then select the Proxy Settings page. Enter your HTTP proxy host and port and acknowledge with OK. If needed you can also define credentials for the authentication to the proxy.

What is a Schema?

Loading and browsing schemas

How to customize the mapping relevant types