Recreating Ghost Files and XML Instances

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  SchemaAgent Client > Working with Designs > Ghost Schemas and Incorrect Paths >

Recreating Ghost Files and XML Instances

From within SchemaAgent Client, you can recreate the ghost schema as a rudimentary schema at the location specified in the reference. A rudimentary schema is one that contains only the xs:schema declaration. A ghost XML instance is recreated as a rudimentary XML file containing only an empty <root /> element.

 

Note that if the folder specified at the location defined in the reference statement does not exist or is not within the search path, then the Recreate command is not available. This solution ensures that the IIR or reference path correctly points to the specified schema or XML file, respectively. However, you still have to add appropriate content to the recreated rudimentary file.

 

 

To recreate a schema:

1.In the Explorer window or in a Design window, select a ghost schema and do one of the following:

 

Choose the menu option Edit | Recreate.
Right-click and select Recreate from the context menu.

 

A rudimentary schema of the same name is created at the location specified for it in the IIR statement.

 

2.Open the rudimentary schema in XMLSpy and add appropriate content.

 

 

To recreate an XML file:

1.In the Explorer window, right-click a ghost XML file and select Recreate from the context menu. A rudimentary XML file of the same name is created at the location specified for it in the reference.
2.Open the rudimentary XML file in XMLSpy and add appropriate content.

© 2019 Altova GmbH