File Description Document Schemas

As with our other formats, there are four schemas involved in describing X12 interchanges and their xml representation.

  1. X12SourceFileDescription.xsd: This schema is for file description documents that describe conversions in which the source is an X12 interchange.

  2. X12TargetFileDescription.xsd: This schema is for file description documents that describe conversions in which the target format is an X12 interchange.

  3. X12CommonFileDescription.xsd: This type library schema is used by the two previous schemas.

  4. BBCommonFileDescription.xsd: Again, this is our common type library.

The schemas introduced in this chapter are very similar to those developed in Chapters 7 and 8. The main difference in our X12 schemas is that instead of using the FieldGrammarType from our common schema, we define an ElementGrammarType. The main reason we do this is that our X12 utilities don't support all the other data types we have defined. We create a new X12DataType simple type for the DataType Attribute instead of using the BBDataType.

Note that the SegmentType complex type, unlike the flat file's FlatRecordType and the CSV's RowDescription Element, allows two different types of child Elements in its sequence. We can have a mix of SimpleElementDescription Elements and CompositeStructureDescription Elements. We indicate this with a choice content model within the sequence.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset