setExplainRecord(sb.toString());
}
private static ExtraDataType makeExtraDataType(String extraData) {
ExtraDataType edt = null;
// extraData is always encoded as "xml"
Document domDoc;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
try {
DocumentBuilder db = dbf.newDocumentBuilder();
StringReader sr = new StringReader("<bogus>"+extraData+"</bogus>");
domDoc = db.parse(new InputSource(sr));
sr.close();
Element el = domDoc.getDocumentElement();
NodeList nodes=el.getChildNodes();
MessageElement elems[] = new MessageElement[nodes.getLength()];
for(int i=0; i<elems.length; i++)
elems[i]=new MessageElement((Element)nodes.item(i));
edt = new ExtraDataType();
edt.set_any(elems);
domDoc=null;
} catch (IOException e) {
log.error(e, e);
} catch (ParserConfigurationException e) {
log.error(e, e);