Created: 2011-07-08 14:04
Updated: 2014-02-20 17:10

Inline Erlsom

This is a parse-transform extension for the inline_xml utility, adding explicit support for the erlsom XML parser and its various features.


Use of XML schemas (for use in erlsom's data binding mode) is supported. You can enable this support by including the requisite header file and declaring your XSD files in the following manner.


When you import an XSD, the file is processed (at build time) and an Erlang header file with record definitions (for data binding) produced by erlsom. The header(s) will then be imported into your module automatically. Your code, after being transformed, will look something like:

%% etc ....

Any XML that is being inlined (i.e., XML being processed by the parse transform in inline_xml) will be processed using the erlsom functions that work with these data bindings. Again, this takes place at compile time, so your literal XML will be validated against the given schema before your code can be built.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more