Some examples:
* the two integers {{Code|123}} and {{Code|789}} are encoded as {{Code|123}}, {{Code|\1}}, {{Code|789}} and {{Code|\0}} ({{Code|xs:integer}} may be specified via the <code>{type}<code> argument).
* the two items {{Code|xs:integer(123)}} and {{Code|xs:string('ABC')}} are encoded as {{Code|123}}, {{Code|\2}}, {{Code|xs:integer}}, {{Code|\1}}, {{Code|ABC}}, {{Code|\2}}, {{Code|xs:string}} and {{Code|\0}}.