NodeList nl = doc.getElementsByTagName(FUNCTION);
List<FunctionDescriptor> list = new ArrayList<FunctionDescriptor>();
if (nl != null) {
int size = nl.getLength();
for (int i = 0; i < size; i++) {
list.add(new FunctionDescriptor(nl.item(i)));
}
}
return list.toArray(new FunctionDescriptor[0]);
}