Arc Forumnew | comments | leaders | submitlogin
ASK: How does sml differ from sxml
3 points by kinnard 628 days ago | 1 comment
How does sml: https://github.com/arclanguage/anarki/blob/master/lib/sml.arc differ from sxml: https://en.wikipedia.org/wiki/SXML


3 points by hjek 623 days ago | link

SML seems a bit terser than SXML since attributes aren't wrapped in parenthesis and don't use an @.

SML example from your link:

(tagname attr "value" attr2 "value2" (tagname2) (tagname3 "data"))

SXML example from your link:

(tag (@ (attr1 "value1") (attr2 "value2")) (nested "Text node") (empty))

-----