code: function (options) {
          var opts = options || {},
              attrTag = opts.attrTag,
              textTag = opts.textTag || '#text',
              xmlDeclaration = opts.xmlDeclaration || '<?xml version="1.0"?>';
          if (attrTag === undefined) {
              attrTag = '@';
          }
          this.attrTag = attrTag;
          this.attrTagIndex = this.attrTag.length;
          this.textTag = textTag;
          this.xmlDeclaration = xmlDeclaration;
      }
docs: XML2JSON converter, when instantiated invoke convert(xmlString) to get the corresponding JavaScript object.
  @param {object} options - optional options.
  @param {string} options.attrTag - keys with this will be treated as attributes, default "@".
  @param {string} options.textTag - the key values for text items, default "#text".
  @param {string} options.xmlDeclaration - the xmlDeclaration, default "<?xml version="1.0"?>".
  @constructor