Xenon Design Rationale

submited by
Style Pass
2024-11-18 23:30:03

Xenon uses the <angle bracket> notation successful in html and xml . The markup addresses deficiencies in xml , namely: first class support for arrays and a graph structure; removal of attributes, support for readable indented text.

Xml and Json are both overly simple at an unacceptable cost to people writing the markup. Both xml attributes and json property names should not require "quotes" if the string does not contain whitespace as per html and JavaScript.

Here the array ItemOrders is represented with two sub elements, called Item. There is nothing to indicate that ItemOrders is an array and Item is not the name of the data but the type. Item is redundant, it could be any markup delimiting the objects or removed entirely.

If symbols inside angle brackets, e.g. <$>, are unfamilar, bear with us, one becomes accustomed. $ is chosen to represent the end of an object as per regular expressions, the vertical bar inside the dollar sign means the end.

Leave a Comment