lost+found/src/xml.js
function (name) {
        var newName;
        if (gpf.xml.isValidName(name)) {
            return name;
        }
        // Try with a starting _
        newName = "_" + name;
        if (!gpf.xml.isValidName(newName)) {
            gpf.Error.xmlInvalidName();
        }
        return newName;
    }
function (name) {
        var newName;
        if (gpf.xml.isValidName(name)) {
            return name;
        }
        // Try with a starting _
        newName = "_" + name;
        if (!gpf.xml.isValidName(newName)) {
            gpf.Error.xmlInvalidName();
        }
        return newName;
    }
function ( name ) { var newName ; if ( gpf . xml . isValidName ( name ) ) { return name ; } // Try with a starting _ newName = "_" + name ; if ( ! gpf . xml . isValidName ( newName ) ) { gpf . Error . xmlInvalidName ( ) ; } return newName ; }
Make sure that the provided name can be use as an element or
attribute name

@param {String} name
@return {String} a valid attribute/element name
Make sure that the provided name can be use as an element or attribute name