Jsonix Module Syntax

by Alexey Valikov

JavaScript

var MyModule = {
    // Name of the module, required
    name: 'MyModule',
    // Array of types declared by the module, optional 
    typeInfos: [ /*...*/ ],
    // Array of element mappings declared by the module, optional
    elementInfos: [ /*...*/ ],
    // Default namespace URI for elements, optional
    defaultElementNamespaceURI: 'http://www.mymodule.org/elements',
    // Default namespace URI for attributes, optional
    defaultElementNamespaceURI: 'http://www.mymodule.org/attributes'
};