wraps a valid cordova config.xml file
var ConfigParser = require('cordova-lib').configparser;
var config = new ConfigParser('path/to/config/xml/');
returns document root ‘id’ attribute value
config.packageName: function(id)
/*
*/
set document root ‘id’ attribute to function(id) { this.doc.getroot().attrib[‘id’] = id; },
name: function() { return getNodeTextSafe(this.doc.find('name')); }, setName: function(name) { var el = findOrCreate(this.doc, 'name'); el.text = name; },
config.description() var text = "New and improved description of App" setDescription(text)
version() android_versionCode() ios_CFBundleVersion() setVersion()
config.author();
config.getPreference(name);