Pieter de Jong Pieter de Jong
Jun 23, 2014 6:00:00 AM

By using STAEDEAN Connectivity Studio you can easily validate Extensible Markup Language (XML) documents and generate XSD or XML Schema Definition files from a document. Today I’ll show you how. If you can perform these simple steps to validate your XML content and generate your XSD, you can ensure that information exchanges with customers and trading partners follow required standards, which in turns helps your organization to do business with these companies.

When do you need XML validation? We see many scenarios similar to the following: A retail chain requires suppliers to process orders via EDI. The retail chain uses an EDI service provider for EDI document exchange to offer multiple integration options (XML, EDIFACT, X12). One of the suppliers is integrating the EDI process using XML. This supplier is concerned about the penalty clause involved if XML does not meet the customer’s EDI specifications. Connectivity Studio can offer a helping hand.

XML Validation

You can set an XSD schema on a document by following these steps:

  1. Open Business Integration Solutions > Common > Connectivity Studio > Documents.
  2. Click Header view in the Show group.
  3. In the Record layout FastTab enter ‘[Your XSD schema location]’.

How to set an XSD schema on a document

 

TIP: The XSD must be accessible by the Application Object Server (AOS). You can use, for example, a file share.

If you run the message and the XML is not valid, you will receive an XSD error in the Infolog:

XSD error in the Infolog for invalid XML

 

Generate Your Own XSD

In Connectivity Studio you can also generate an XSD file from a document:

  1. Open Business Integration Solutions > Common > Connectivity Studio > Documents.
  2. Click Schema in the Classes group on the Development tab.
  3. Click Save As to save the XSD. 

How to generate your own XSD file from a document in Connectivity Studio

 

Watch this blog for more practical how-to ideas to help you in your work. If you have questions or would like to know more about Connectivity Studio, please contact us.

Pieter de Jong Pieter de Jong
TI_LOGO_TI-Logo-color andAXP_365

have now rebranded to

staedean-logo-teal