|
Home > Products > XML Tools - Stylus Studio Features > XML Schema Tools > EDIFACT to XML XML Schema Tools
Convert EDIFACT to XML SchemaStylus Studio® XML Enterprise Suite, Release 2 now includes a powerful EDIFACT to XML Schema conversion wizard for migrating or integrating legacy systems to support new XML, XML Schema and Web services technologies. It's just one of the many EDIFACT tools included in Stylus Studio Enterprise Edition for working with XML and UN/EDIFACT data. Simplify EDIFACT Data IntegrationIn this tutorial, we'll cover how to convert EDIFACT to XML Schema, automatically generating an XML schema data model from any EDIFACT message model. These powerful new EDIFACT tools are fully integrated with Stylus Studio®'s XML Schema Editor, which means that you can make further refinements or customizations using a powerful, visual editing interface, or generate a sample XML instance document, etc. An XML Schema representation of an EDIFACT data model is illustrated here:
Invoking the EDIFACT to XML Schema WizardTo convert an EDIFACT data model to XML Schema, select "File" > "Document Wizards" and invoke the EDIFACT to XML Schema Wizard from the Document Wizard Window (bottom row, second icon), as shown here:
Configuring the EDI to XML Schema ConversionNext, choose the EDIFACT version and message that you want to convert. Stylus Studio® 2008 XML Enterprise Suite, Release 2 provides various configuration options, including the ability to include XML schema documentation annotations, generate enumerations for fields that have lists of values, and using "unbounded" for maxOccurs when a loop value is greater then 99. In this example, choose EDIFACT Version 96A, and the Invoice message, then click OK, as illustrated here:
Save the XML Schema file we've built as To make navigating the schema simpler, we've kindly annotated the schema document with the various element, component and enumeration value names, so you're not stuck trying to guess what element 1001 means or what the enumerated values all represent in the real world. Validating EDIFACT FilesTo validate existing EDIFACT files to make sure they match the schema, you can use the adapter technology already built in. You can download an example EDIFACT file to validate from here. (.ZIP, 77 Kb) Open the example EDIFACT file as shown below. Ensure that "Convert to XML Using Adapter" is selected, since the EDI file is not an XML file.
Next, Select the built-in Electronic Data Interchange (EDI) XML Converter option, keep the default conversion options, then click OK - Stylus Studio® performs the EDI-to-XML conversion.
Now you're ready to validate the EDI data against the XML Schema that was generated earlier.
To do this, associate the converted EDI data to the
XML validation is important to ensure that your data is both syntactically well-formed and semantically accurate. Now that you have associated the XML Schema with the converted EDIFACT data, validation is easy. Click on the green checkmark icon in the XML Editor, choose a validating XML Schema processor, for example, MSXML 3.0, MSXML 4.0, MSXML 6.0, Xerces, XSV, Microsoft System.XML, etc. Stylus Studio® validates the data and reports the status to the Output Window.
Voilà! We have all of the tools we need to not only generate XML from EDIFACT, but also to validate it. We can also take that same XML file and write it through the adapter, and turn it back into a well-formed EDIFACT document. This is especially useful with the advanced XML mapping functionality which can generate XSLT and XQuery to map either XML, EDI or many other formats to and from each other. If you're working with EDIFACT and XML, save yourself hours of tedious work by downloading the most productive tool for XML and EDIFACT today!
EDIFACT ReferenceThe EDIFACT Reference is a free developer resource providing the most in-depth information on EDIFACT constructs and data models. XML OperationsUsing XML Pipeline it's easy to visually specify a series of XML operations to apply on your XML data, including parsing, validating, converting and transforming, according to the needs of your business application. Translating XML documents to X12In-place, via XSLT and via XQuery are all mechanisms supported for converting XML to X12 XML Schema MappingStylus Studio includes a visual XML Schema-to-XML Schema mapping tool that allows you to easily implement sophisticated XML data mappings involving multiple data sources and customized data processing using either XSLT or XQuery code. Stylus Most Wanted |
PURCHASE STYLUS STUDIO ONLINE TODAY!!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Try Stylus XML Schema IDEDownload a free trial of our award-winning XML Schema IDE today! Learn XQuery in 10 Minutes!Say goodbye to 10-minute abs, and say Hello to "Learn XQuery in Ten Minutes!", the world's fastest and easiest XQuery primer, now available for free! Why Pay More for XML Tools?With Stylus Studio® 2008 XML Enterprise Suite, you get the most comprehensive XML tool suite at one incredibly low price. Value: it's just one of many reasons why smart XML developers are choosing Stylus Studio! Support XQuery in the Microsoft .NET Framework10 Simple things you can do to help support XQuery in the Microsoft .NET 2.0 Framework - Read on! |







