You can generate an XML schema file from a relational table. You
can use the XML schema to validate XML documents generated from the same relational
table.
The following instructions were written for the Resource perspective,
but they will also work in many other perspectives.
To generate a schema
file from a relational table follow these steps:
- Open the Data view ().
- In the Data view, click the table that you want to work with.
- From its pop-up menu, click Generate XML Schema.
- Select a project or folder to contain the XML file and type a name
for it. The name of the file must end in.xsd. Click Finish.
- The XML schema appears in the Navigator view.
Note: If you generate an XML schema from a database table containing
full-width alphabet and digit names you will receive errors in the Problems
view. Do not give database tables and columns names that contain DBCS characters.