john kereszturi - 2008-05-28

Has anyone tried making arbitrary multi record types work (i.e., not header/trailer records but rather just multi-record type flat files)?  I tried using only multiple <RECORD> elements (which contained <COLUMN> elements) without a separate set of <COLUMN> elements outside of <RECORD>, but it violates the DTD (RECORD*,COLUMN+,RECORD*).  If I stick in a dummy <COLUMN> element to appease the DTD, it blows with an out of memory upon calling parse().

For example:

...
<RECORD id="A1" startPosition="13" endPosition="15" indicator = "A1 ">
  (bunch of column entries)
</RECORD>
<COLUMN name="dummy" length="100" />
<RECORD id="G1" startPosition="13" endPosition="15" indicator = "G1 ">
  (bunch of column entries)
</RECORD>