stringifyNode = (data, config, state) => {
  let svg = '';
  state.indentLevel++;
  for (const item of data.children) {
    switch (item.type) {
      case 'element':
        svg += stringifyElement(item, config, state);
        break;
      case 'text':
        svg += stringifyText(item, config, state);
        break;
      case 'doctype':
        svg += stringifyDoctype(item, config);
        break;
      case 'instruction':
        svg += stringifyInstruction(item, config);
        break;
      case 'comment':
        svg += stringifyComment(item, config);
        break;
      case 'cdata':
        svg += stringifyCdata(item, config, state);
    }
  }
  state.indentLevel--;
  return svg;
}
@param {import('./types.js').XastParent} data
@param {Options} config
@param {State} state
@returns {string}