You can edit almost every page by Creating an account. Otherwise, see the FAQ.

Xupl

From EverybodyWiki Bios & Wiki


xupl is a human-readable data format designed to be structurally equivalent to XML yet representationally similar to C-style programming languages.

Features[edit]

xupl syntax is designed with the same goals as XML[1] yet be easily created and read by humans while leveraging the machine-readable toolset of XML and the IDE tools of many high-level languages.

Examples[edit]

Sample document[edit]

note: to: "Tove". from: "Jani". heading: "Reminder". body: "Don't forget me this weekend!"

Alternatively:

note {
  to: "Tove"
  from: "Jani"
  heading {"Reminder"}
  body {"Don't forget me this weekend!"}
}

Language elements[edit]

Basic components of xupl[edit]

Attributes[edit]

Attributes are specified as a comma-separated list of name-value or value-name pairs.

html lang "en", "RTL" dir:
  head{title:"My xupl"}
  body:
    a "/nicerobot/text-plain/wiki/xupl":"xupl"

Advanced components of xupl[edit]

xupl doesn't require closing tags at the end of the document. This facilitates limited streaming of content into a document. To facilitate terse documents and demonstrated by the HTML example above, one attribute name per tag (and per namespace) is optional for which the xupl parser will provide the default name.

XML and SDL[edit]

xupl is syntactically similar to SDL (Simple Declarative Language)[2] but differs fundamentally in that xupl provides an exact but alternative representation of any XML document.

Bindings[edit]

Native implementations and bindings for xupl exist for the following languages:

See also[edit]

Other human-readable serialization formats include:

References[edit]

  1. "XML 1.0 Origin and Goals". Retrieved 2 June 2011.
  2. "SDLang - Simple Declarative Language". Retrieved 2020-10-19.

Further reading[edit]

External links[edit]


This article "Xupl" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Xupl. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.