Is there any loss less binding of XML to s expressions? I've never seen one.
Usually example where I see people rewrite XML to s expressions (like in this thread) are very lossy -- its easy to be pretty by throwing away most of the information!
Usually example where I see people rewrite XML to s expressions (like in this thread) are very lossy -- its easy to be pretty by throwing away most of the information!
I'm not sure what example in this thread you consider to be throwing information away - in a case like
<Term term="slick">
where the attribute name is clearly redundant and exists only to satisfy the syntax, nothing is lost in the transformation to (term "slick"You haven't looked hard enough. Mappging XML to sexprs is trivial:
<tag value=attr ...>content</tag>
-->
((tag value attr ...) content)