code: function XElement(name) {
          _super.call(this);
          this._elements = new observable_array_1.ObservableArray();
          if (!(name instanceof XName)) {
              name = new XName(name);
          }
          this._name = name;
      }
docs: Initializes a new instance of that class.
  
  @param any name The name of the element.
  
  @throws Name is invalid.