I am attempting to create a non-XML parser for a file that is almost XML but not. By that I mean the data is identified by:

<F:L:T>D

The data length L is ASCII text, and may be of any non-negative value including 0:

<NAME:0>

<NAME:3>Ray

An optional data type indicator may be added:

<NAME:3:S>Ray

So far I have constructed a schema file that has all the elements defined as needed in a file I called adif_spec.xsd.

My code creates a sub-classed reader to read the data file using the schema and create a XML output file.

My problem is all my attempts to read in the raw data and have the reader convert the data in the above format to XML have not been productive. I have no idea where to go from here.

The docs are not terribly specific and they assume a thorough knowledge of the process of applying the Qt XML libraries to this task.
Can anyone point me in the right direction?