private static FormField parseField(XmlPullParser parser) throws XmlPullParserException, IOException { final int initialDepth = parser.getDepth(); final String var = parser.getAttributeValue("", "var"); final FormField.Type type = FormField.Type.fromString(parser.getAttributeValue("", "type"));