 <p>I use LaTeX to create the DOM representation.</p> <p>Here is a minimal working example:</p> <pre><code>\documentclass{scrreprt} \usepackage{tikz-qtree} \begin{document} \Tree[.table [.thead [.tr [.th [.\textit{Vorname} ] ] [.th [.\textit{Nachname} ] ] ] ] [.tbody [.tr [.td [.\textit{Donald} ] ] [.td [.\textit{Duck} ] ] ] ] ] \end{document} </code></pre> <p>Which gives:</p> <p><img src="https://i.stack.imgur.com/Q1MXq.png" alt="enter image description here"></p>