3 ms·
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 thre
by CJefferson 12y ago
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!
- loqi 12y agoDTDs mercifully aside, there's this: http://okmij.org/ftp/Scheme/SXML.html http://okmij.org/ftp/Scheme/SXML.html 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"
- ehaliewicz2 12y agoI'm not sure what you could express in XML that you couldn't translate to s-expressions in one way or another.
- lisper 12y ago> Is there any loss less binding of XML to s expressions? I've never seen one. You haven't looked hard enough. Mappging XML to sexprs is trivial: <tag value=attr ...>content</tag> --> ((tag value attr ...) content)
- CJefferson 12y agoTrue, but to be honest, that isn't really any more useful compact (well, it saves closing tags I suppose).