public void xmlElementChanged(XMLElementChangeInfo info) {
if (info.getAction() == XMLElementChangeInfo.REMOVED) {
Iterator it = info.getChangedSubElements().iterator();
while (it.hasNext()) {
XMLElement el = (XMLElement) it.next();
int row = getElementRow(el);
// System.out.println("Removing row " + row + " for element " + el);
if (row != -1) {
removeRow(row);
}
}
} else if (info.getAction() == XMLElementChangeInfo.INSERTED) {
Iterator it = info.getChangedSubElements().iterator();
while (it.hasNext()) {
XMLElement el = (XMLElement) it.next();
addRow(el);
}
}
}