I'm trying to understand how to express a simple document in an s-expression. Here's what I mean. Let's say I have this simple html structure:
<h1>Document Title</h1>
<p>Paragraph with some text.</p>
<p>Paragraph with some <strong>bold</strong> text.</p>
Also let's assume that I'm okay with losing the original tag provenance and just want to preserve the structure. How could this be expressed with an sexp? My initial try (using clojure) looks like this, but I'm not sure that it is correct:
(def sexp-doc '("Document Title"
("" ())
("This is a paragraph with some text." ())
("" ())
("This is a paragraph with" ("bold" ()) ("text." ()))))