Is there a better ( safer ) way to create a record from a XmlAttributeCollection. The workaround with the array of 3 values seems not the best solution.
type Pattern = { patternName : string; patternExpr : string; group : string }
let attArray = [| for att in xmlNode.Attributes do yield att.Value |]
{patternName = attArray.[0]; patternExpr = attArray.[1]; group = attArray.[2]}