String dataAsXml = stringWriter.toString();
SAXReader reader = new SAXReader();
Document testDoc = reader.read(new InputSource(new StringReader(dataAsXml)));
List misc1Rows = testDoc.selectNodes("//misc1");
List misc2Rows = testDoc.selectNodes("//misc2");
String pkColumnName = "pk";
String fkColumnName = "fk";
String valueColumnName = "avalue";
if (misc1Rows.size() == 0)