// System.out.println("buildXML " + arrayList.size());
if (arrayList != null) {
for (int i = 0; i < arrayList.size(); i++) {
if (arrayList.get(i) instanceof Element) {
Element element = (Element) arrayList.get(i);
// System.out.println("bbb " + element.getText());
if (element.getPrefix() != null) {
String newPrefix = element.getPrefix();
if (newPrefix.startsWith("/*")) {
newPrefix = prefix + element.getPrefix().replaceAll("/\\*", prefix_count);
// System.out.println("BuildXML.buildPage()" + (prefix + element.getPrefix()).replaceAll("/\\*", ""));
}
int count = builderRecord.contaNodi(newPrefix);
if (count == 0)
count = 1;
for (int x = 0; x < count; x++) {
buildXML(element.getElemets(), builderRecord, newPrefix, "[" + (x + 1) + "]", genericInterface);
}
} else {
if (element.getText() != null) {
// System.out.println("aaaa " + element.getPrefix());
// System.out.println("aaaa " + prefix);
// System.out.println("aaaa " + prefix_count);
// qui creo il bean per fare Field
extractValue(element, builderRecord, prefix, prefix_count, genericInterface);
}
if (element.getElemets() != null) {
buildXML(element.getElemets(), builderRecord, null, null, genericInterface);
}
}
}
}
}