How to create schema

Hi wmusers very good evening,
I got a problem while creating a schema from XML file.Is it compulsary both DTD and xml for creating schema for a document?
how to create a Flatfile.
is there any diference between Flat file form and canonicalform.
Please reply my questions

Is it compulsary both DTD and xml for creating schema for a document?
[B]No. you can use anyone(DTD or XML) to create schema.[/b]

how to create a Flatfile.
1) You have to create flatfile schema to describe the format of your flat file
2) using this flatfile schema, you can convert your IS Document to flatfile using Builtin service(convertToString). This service will be inside wmFlatFile module.
convertToString - using this we can convert IS document to flatfile
convertToValue - to covert flat file to IS Document.

An IS schema can be created:

  • By using an XML schema file
  • By using an XML sample file
  • By using a DTD
  • By hand

An IS flat file schema describes the layout of records and the fields within those records.

Search the forums for discussions about canonical formats, which might be represented by an XML schema, and IS schema or an IS flat file schema (or none of those).