XYML is a simple markup language based off of XML and YAML. It features the simplicity of YAML with the extensibility of XML.
To learn more about XYML, visit the wiki.
For the most part, XYML is most closely related to YAML. The few major differences that need to be noted are:
All values are parsed as if they were JSON. So, for example "value"
is a string, and 0
is a number. This means that "0"
is a string.
Attributes of values are noted by there prepended +
. Attributes can be added to any value, simple (string, number, boolean) or complex (objects).
Take for example the complex value parent
with child foo
and attribute baz
:
parent:
foo: "bar"
+ baz: "fiz"
and the simple value parent
with attribute bar
:
parent: "foo"
+ bar: "baz"
Instead of creating an array using -
, arrays are created by using multiple of the same keys.
For example, the YAML
array:
- bar
- foo
would become
array:
item: "foo"
item: "bar"
All indention is done with a single tab instead of two spaces.