Skip to content

Additional Processing via Custom Functions

Compare
Choose a tag to compare
@nashwaan nashwaan released this 17 Dec 22:38
· 53 commits to master since this release

This release adds a major feature that allows to pass in custom functions for additional processing.

Example to make all parsed element names in upper case:

var js = convert.xml2js(xml, {compact: false, elementNameFn: function(name) {
    return name.toUpperCase();
}});