I had some time to kill so I changed the way critical is parsed. The old way matched the text in the book which is: "+1d6 fire per plus". Since each plus item is a different entry in the xml, I went through the work of calculating the correct answer. "+1d6 fire per plus" becomes "+5d6 fire" for a +5 weapon.
You can see some examples below: