How to use the elementtree.Element function in elementtree

To help you get started, we’ve selected a few elementtree examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / cordova-lib / cordova-lib / src / configparser / ConfigParser.js View on Github external
addFeature: function (name, params){
        if(!name) return;
        var el = new et.Element('feature');
        el.attrib.name = name;
        if (params) {
            params.forEach(function(param){
                var p = new et.Element('param');
                p.attrib.name = param.name;
                p.attrib.value = param.value;
                el.append(p);
            });
        }
        this.doc.getroot().append(el);
    },
github katzer / cordova-plugin-badge / node_modules / cordova-android / node_modules / cordova-common / src / ConfigParser / ConfigParser.js View on Github external
function findOrCreate (doc, name) {
    var ret = doc.find(name);
    if (!ret) {
        ret = new et.Element(name);
        doc.getroot().append(ret);
    }
    return ret;
}
github katzer / cordova-plugin-badge / platforms / windows / cordova / node_modules / cordova-common / src / ConfigParser / ConfigParser.js View on Github external
function findOrCreate (doc, name) {
    var ret = doc.find(name);
    if (!ret) {
        ret = new et.Element(name);
        doc.getroot().append(ret);
    }
    return ret;
}
github alex-shpak / keemob / node_modules / cordova-common / src / ConfigParser / ConfigParser.js View on Github external
function findOrCreate (doc, name) {
    var ret = doc.find(name);
    if (!ret) {
        ret = new et.Element(name);
        doc.getroot().append(ret);
    }
    return ret;
}
github apache / cordova-windows / node_modules / cordova-common / src / ConfigParser / ConfigParser.js View on Github external
function findOrCreate (doc, name) {
    var ret = doc.find(name);
    if (!ret) {
        ret = new et.Element(name);
        doc.getroot().append(ret);
    }
    return ret;
}

elementtree

XML Serialization and Parsing module based on Python's ElementTree.

Apache-2.0
Latest version published 8 years ago

Package Health Score

56 / 100
Full package analysis