code: 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;
      }
docs: 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