1. A method of reducing dynamic memory usage during the decoding of an Efficient XML Interchange (EXI) stream, the method comprising: parsing an EXI Profile stream to identify each element within the EXI Profile stream that is not defined by an associated XML schema; examining the first bit after a corresponding SE event for each of the identified elements; and assigning an initial built-in element grammar with no top-level production to each element where the first bit is set to 0 or an augmented built-in element grammar with one top level production of AT(xsi:type) to each element where the first bit is set to 1.