The techniques and mechanisms described herein are directed at converting
text into objects based on a template that describes the format of the
text. The objects then being available for further processing. The
conversion mechanism converts the text into an object having at least one
method that is directly invocable and that is specific to a data type
specified for the live object. The template comprises an object header
indicator and a corresponding object header pattern. A new object is
created whenever the object header pattern is identified within the text.
In addition, the template comprises one or more field indicators each
having a corresponding field pattern. The field pattern is in a format of
a regular expression. A new field is created for the new object whenever
a field pattern is identified within the text.