A script-enabled browser is required for this page to function properly.

Using the Schema Generator Tool

The schema generator tool, SchemaGenerator, produces a forms.xsd file containing the Forms XML Schema against which all of the XML files are validated. The tool can also be called from a Java program to obtain an XMLDocument or XMLSchema Java object representing the schema. You can also use the convenience scripts that are provided with the Forms installation.

Note: The purpose of the schema generator tool is to produce an .xsd file that you can use with your own XML software or parser. The .xsd file itself is not used to validate any XML files. For example, the XML validation tool, XMLValidator, generates a schema "on the fly" at validation time from the Forms metadata in the Jdapi. This is also true of validation by the parser in XML2Forms.

To generate the Forms XML Schema from the command line:

The schema generator tool is called from the command line without any arguments. For example:

java oracle.forms.util.xmltools.SchemaGenerator

The ouptut is placed in the current folder.

To generate the Forms XML Schema from a Java program:

The following code snippet can be used in a Java program to return an oracle.xml.parser.schema.XMLSchema object for the Forms XML Schema:

 
  ...
  XMLSchema formsSchema = SchemaGenerator.getSchemaObject();
  ...

The following code snippet can be used in a Java program to return an oracle.xml.parser.v2.XMLDocument representing the Forms XML Schema:

  
  ...
  SchemaGenerator sgen = new SchemaGenerator();
  XMLDocument formsSchema = sgen.generateSchema();
  ...

Using the XML to Forms Conversion Tool

About Converting XML to Forms

About the Convenience Scripts