XML in C++

This article was originally published in VSJ, which is now part of Developer Fusion.
Codalogic has released a free edition of its LMX C++ XML data binding tool. Codalogic LMX generates application specific C++ code that will read and write XML instances to and from C++ objects. The tool uses a W3C XML schema to define the C++ code that is generated. The generated C++ code consists of C++ classes that mirror the structure specified by the XML schema and the code ensures that the read and written XML instances conform to the constraints specified by the XML schema.

Using XML data binding has a number of benefits over other methods of interfacing to XML. It helps reduce bugs by moving error detection from run-time to compile-time. Writing code is quicker and easier because less code needs to be written, IDEs are able to use code completion technology, and key method names and constants can be cut-and-pasted from the generated documentation. The resulting code is also more self-documenting.

The Codalogic LMX code generator comes in a number of editions – including a free version – and the generated code is cross-platform, royalty-free, and can be compiled on any C++ standard compliant compiler.

You might also like...



Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Beware of bugs in the above code; I have only proved it correct, not tried it.” - Donald Knuth