How to Validate XML with To-Increase Connectivity Studio

Jun 23, 2014 6:00:00 AM

How to Validate XML with To-Increase Connectivity Studio

By using To-Increase 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]’.

CS XML 1

 

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:

CS XML 2

 

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. 

CS XML 3

 

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.

Share this message
About Author
Pieter de Jong

Pieter de Jong

Business and Application Integration Specialist Pieter translates the business requirements of the industries and companies To-Increase serves into functionality in our Business Integration Solutions for Microsoft Dynamics AX. His specialized skills include model-driven development, Javascript, Java, HTML, XML, Visual Studio, and Eclipse. Before Pieter joined the team at To-Increase, he spent a career of close to 20 years as a software engineer and developer at Baan Info Systems and in other companies.

Get In Touch

Related Blogs

May 28, 2019 7:42:40 AM
Apr 9, 2019 9:27:11 AM
Dec 17, 2018 9:01:05 AM