Right, it's hilarious. Commas are "fields". The colon in LCL:DF_Help_z60z65_RevA1.html#PF_Flags_1
is a reference to go into a docs folder to provide help text if required.
The pipes are for register bit definitions. In this case b4 means 4 bytes and 32 bits are being defined.
But wait it doesn't support the b4 type in the software! (why the fuck is it there?)
So let's shove it into <comment> tags and then add the real definitions below it.
[code]
<Data> Saved Permanent Fail 1 Flags,0, Saved PF Flags 1, H2,0,0, x, x, b2:FBF|VSHUT|SUV|SOPT1|SOCD|SOCC|AFE_P|AFE_C|DFF|DFETF|CFETF|CIM_R|SOT1D|SOT1C|SOV|PFIN, -,0, FFFF,LCL:DF_Help_z60z65_RevA1.html#Saved_PF_Flags1,0, - </Data>
<Data> Saved Permanent Fail 2 Flags,2, Saved PF Flags 2, H2,0,0, x, x, b2:RSVD|RSVD|RSVD|RSVD|RSVD|RSVD|RSVD|RSVD|RSVD|RSVD|RSVD|RSVD|SOPT2|SOT2D|SOT2C|CIM_A, -,0, FFFF,LCL:DF_Help_z60z65_RevA1.html#Saved_PF_Flags2,0, - </Data>
[/code]
The rest of the file is...the same. The best part is the upper level tags
[code]
<ClsDesc> Calibration
<SubCls SubClsId= 104> Data
<Data> CC Sense Resistor Gain,0, CC Gain, F4,0.9419,0.9419, 9.419/x, 9.419/x, f.fff, -,1.00E-01,4.00E+00,LCL:DF_Help_z60z65_RevA1.html#CC_Gain,0, - </Data>
[/code]
Yep, there is text outside elements in the ClsDesc tag with more elements continuing. Suddenly it's HTML.