docs: function(name, options) {
          options = options || {};
          // order of prefix preference
          // 1. in the uri option
          // 2. in the prefix option
          // 3. in the qualified name
          // 4. from the defaultPrefix
          var uri = options.uri || this.namespaces[options.prefix];
          if(!uri) {
              var loc = name.indexOf(":");
              uri = this.namespaces[name.substring(0, loc)];
          }
          if(!uri) {
              uri = this.namespaces[this.defaultPrefix];
          }
          var node = this.createElementNS(uri, name);
          if(options.attributes) {
              this.setAttributes(node, options.attributes);
          }
          var value = options.value;
          if(value != null) {
              node.appendChild(this.createTextNode(value));
          }
          return node;
      }