I wonder what ASN.1 is then? http://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One
Anything from completely brain-damaged (XER) over cheap (GSER or BER, depending on whether you want widely-used or human-readable) to nasty (PER) depending on what encoding rules you use.