$ref = XMLin('charge-type-control.xml', KeyAttr => ['code']);