Simple Outline XML

Simple Outline XML (SOX) is a compressed way of writing XML.

SOX uses indenting to represent the structure of an XML document, eliminating the need for closing tags.

Example

The following XHTML markup fragment:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Sample page</title>
</head>
<body>
  <p>A very brief page</p>
</body>
</html>

... would appear in SOX as:

html>
    xmlns=http://www.w3.org/1999/xhtml
    head>
        title> Sample page
    body>
        p> A very brief page

SOX can be readily converted to XML.

gollark: So a reboot didn't help and I got a bizarre error: `[ 56.867613] acer_wmi: Unknown function number - 2 - 99`.
gollark: Quite probably!
gollark: Oh, never mind, I have 5.5.5 installed, just not running.
gollark: 5.5? Oh dear. I must be out of date.
gollark: The latest one?

See also

  • JSON is another simple outline language (which is also the base of similar associative array initializers in PHP).
  • Haml is a meta-XHTML representation, originally implemented for Ruby and has a similar mark-up structure.

Sources

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.