Editing a schema
This product includes the XML schema (.xsd) editor from the Web
Tools Platform (WTP) Project based on Eclipse technology. You have the option to edit a schema
within the product using this built-in editor. Or you can choose to edit the schema using an
external editor by exporting a data source schema that is used in a template and modify it as
necessary. Then, add the revised data source schema back to the template by replacing the previous
version with the new version.
Before you begin
Important: Back up your template by
saving a copy of it before you work with your schema.
About this task
Tip: When a data source schema has a root and a child node with
the same name, infinite recursion occurs. Infinite recursion is the
process of document generation that runs infinitely. Avoid issues
with infinite recursion by ensuring that all nodes have unique names.
Editing a schema using a built-in editor
Procedure
- In the Outline view, expand Data Source Schemas.
- Right-click a schema and select Open Schema in Editor. The XML schema (.xsd file) opens in the XML schema editor, you can use the Design and Source views for editing the schema. For more details about the editor, see XML schema editor topic.
- Save the changes.
Renaming a schema element in the built-in editor
About this task
Procedure
- When you add an element, provide a different name instead of the default NewElement and press the Enter key.
- Select the element name, and change the name in the Properties view.
- In the Rename wizard, enter the name in the New name field.