37383940414243
String label = element.getAttributeValue(labelAttribute); String value = element.getAttributeValue(valueAttribute); if (StringUtils.isEmpty(label) || StringUtils.isEmpty(value)) { return null; } return new ScrapedField(label, value); }
919293949596979899100
} } if (foundIndex != -1) { fields.remove(foundIndex); Field newField = new ScrapedField(label, value); fields.add(foundIndex, newField); } } }