docs: function documentParser(content) {
    var safeContent = safeEndingTags(content);
  
    var body = void 0;
    var head = void 0;
  
    try {
      var $ = _dom2.default.parseXML(safeContent);
  
      body = $('mjml > mj-body');
      head = $('mjml > mj-head');
  
      if (body.length > 0) {
        body = body.children().get(0);
      }
    } catch (e) {
      throw new _Error.ParseError('Error while parsing the file');
    }
  
    if (!body || body.length < 1) {
      throw new _Error.EmptyMJMLError('No root "<mjml>" or "<mj-body>" found in the file, or "<mj-body>" doesn\'t contain a child element.');
    }
  
    return {
      tagName: 'mjml',
      children: [{
        tagName: 'mj-head',
        children: head && head.length > 0 ? parseHead(head.get(0)) : []
      }, {
        tagName: 'mj-body',
        children: [mjmlElementParser(body, safeContent)]
      }]
    };
  }