Within each X12 OTD are Java methods and Java bean nodes for handling validation as described in performValidation. The marshal and unmarshal methods of the envelope OTDs handle enveloping and de-enveloping as described in marshal and unmarshal. No pre-built translations are supplied with the OTD libraries; these can be built in the Java Collaboration Editor.
X12 OTDs have validations and translations, but a validation does not generate an acknowledgment transaction. Instead, it generates a string.
The output string of the validation (see check and checkAll) is in XML format conforming to the X12OTDErrors.xsd file. Refer to Contents of the X12OTDErrors.xsd File for more information. For a sample of the validation output XML, refer to Sample of Validation Output XML.