GSLgen is a file generator that can be used for a variety of purposes. It takes an XML file and a schema file and generates source code, data, or other files. The XML file specifies a specific set of data. Schema files instruct GSLgen on data processing.
GSLgen is built on two powerful ideas. First, we describe data objects using XML. XML is a data description language that is current, clear, and self-describing. Second, we employ a general-purpose schema language (GSL) to perform various manipulations on the XML data and the subsequent output. XML + GSL is a powerful yet simple solution to a common problem: Generating source code and text output from standard templates (schemas) and object models.
To those who are capable of abstracting an issue, the concept of schema-based code creation is incredibly strong and helpful. GSLgen allows you to do the following things:
Create interfaces for programmes. Typically, the interface objects are defined as XML, and then code is generated to pack and unpack these objects. GSLgen can be used to create an ad-hoc generator that generates code in any language. This helps components from different languages and platforms share data.
Create programmes that will allow you to access a database. We do this a lot: we specify the table we want to deal with, then develop subroutines to interact with it, SQL scripts to construct and manage it, and so on. This is a great approach to create applications that can be used with any relational database.
Create HTML or other data object formats.
Data conversion across formats.Converting XML files is common. This type of issue is easily handled via GSLgen.
GSLgen is a lightweight command-line utility that may be simply integrated into scripts and other applications. GSLgen is also available as a module that you may use into your own tools. This is a good method for developing XML-processing tools and code generators.
GSLgen has been made open source by iMatix Corporation so that you can use its power in your own applications. Windows, Linux, and OS/2 provide installation packages. GSLgen can also be built from the given source code.
GSLgen requires XML knowledge. Download the source kit and build GSLgen. You’ll also need to get the SFL library from imatix.com.
There is also a Windows executable available.
Build the SFL package, then use the ‘build’ command in the gslgen src directory to build GSLgen from the full source kit. This generates the gslgen executable and the libgsl library for use in conjunction with your programmes.