/* parse profile fields. */
SimpleXML profileFieldsXml = profileXml.getNode("fields");
if (profileFieldsXml != null) {
for (SimpleXML fieldXml : profileFieldsXml.getNodes("field")) {
String fieldName = fieldXml.getValue("field-name", null);
/* parse profile fields. */
SimpleXML profileFieldsXml = profileXml.getNode("fields");
if (profileFieldsXml != null) {
for (SimpleXML fieldXml : profileFieldsXml.getNodes("field")) {
String fieldName = fieldXml.getValue("field-name", null);