XML Code Generation
XMLSpy® 2017 includes a built-in code generator that automatically generates Java, C++, or Microsoft C# class files based on data elements defined in an XML Schema. Generation of C++ for use on Linux is also supported.
Once you have modeled data elements in XML Schema using the graphical XML Schema editor, XMLSpy can auto-generate class files (data bindings) corresponding to elements defined in your data model. XML Schema is ideally suited for data modeling in modern software applications because it supports the concept of datatypes and object-oriented design. This enables XML Schema to bridge the gap between the relational database model and current object-oriented software design methodologies.
The XMLSpy graphical XML Schema editor is a well equipped software modeling and prototyping tool that allows XML applications to be rapidly prototyped at a high level in XML Schema and then automatically generated. Changes to an application's XML Schema content model can be immediately reconciled with a software implementation simply by re-running the code generator.
Built-in code generation frees software developers from the mundane task of writing low level infrastructure code, enabling them to focus on implementing critical business logic. By automatically generating a programming language binding, XMLSpy accelerates project development time from initial design to final implementation, resulting in substantial cost savings and time to market advantages.
XMLSpy Code Generation Features:
- Generation of class files based on XML Schema components
- Royalty-free Java, C++, or C# code gen
- Automated data binding implementation
- Support for industry-standard XML processing APIs: MSXML, JAXP, System.XML
- Default templates and customization options
XML Data Binding
XML is not a full programming language in that it cannot be compiled or executed as a stand-alone binary executable file; rather XML documents must be bound to an external software application or runtime environment such as a business-to-business application or Web service. The implementation of any custom XML software application ultimately requires writing programmatic access methods within your code to create, validate, process, transform, modify or perform any in-memory operation on an XML document.
Without automated code generation, implementing an XML data binding can be a tedious, error-prone task requiring up to hundreds of class files. XMLSpy generates royalty-free program code based on an XML Schema.
Customizing Generated Code
Output code is completely customizable via a simple yet powerful template language that gives full control in mapping XML Schema built-in data-types to the primitive datatypes of a particular programming language. You can easily replace the underlying parsing and validating engine, customize code according to your company's writing conventions, or use different base libraries such as Microsoft Foundation Classes (MFC) and Standard Template Library (STL).
Full details on customization options are available in the XMLSpy Help manual.