SXML

SXML
Filename extension
.sxml, .scm
Type codeTEXT
Type of formatmarkup language

SXML is an alternative syntax for writing XML data (more precisely, XML Infosets[1]) as S-expressions, to facilitate working with XML data in Lisp and Scheme. An associated suite of tools[which?] implements XPath, SAX and XSLT for SXML in Scheme[2][3] and are available in the GNU Guile implementation of that language.

Textual correspondence between SXML and XML for a sample XML snippet is shown below:

XML SXML
<tag attr1="value1"
     attr2="value2">
  <nested>Text node</nested>
  <empty/>
</tag>
(tag (@ (attr1 "value1")
        (attr2 "value2"))
  (nested "Text node")
  (empty))

Compared to other alternative representations for XML and its associated languages, SXML has the benefit of being directly parsable by existing Scheme implementations. The associated tools and documentation were praised in many respects by David Mertz in his IBM developerWorks column, though he also criticized the preliminary nature of its documentation and system.[4]

  1. ^ Kiselyov, Oleg (2002). "SXML Specification". ACM SIGPLAN Notices. 37 (6): 52–58. doi:10.1145/571727.571736. S2CID 13955814.
  2. ^ Kiselyov, Oleg; Lisovsky, Kirill (2002). XML, XPath, XSLT Implementations as SXML, SXPath, and SXSLT (PDF). International Lisp Conference.
  3. ^ Kiselyov, Oleg; Krishnamurthi, Shriram (2003). SXSLT: Manipulation Language for XML. Practical Aspects of Declarative Languages. Lecture Notes in Computer Science. Vol. 2562. pp. 256–272. doi:10.1007/3-540-36388-2_18. ISBN 978-3-540-00389-2.
  4. ^ Mertz, David (23 October 2003). "XML Matters: Investigating SXML and SSAX". IBM developerWorks. Archived from the original on 4 December 2004. Retrieved 10 January 2015.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search