I have one large XML file and run the following java code on it:
private static Collection<XML> findDefects(final XML report) {
return report.nodes("/defects/defect");
}
It runs extremely long (minutes). Could you speed up this method, please?
Here is my XML:
Pointer.xmir.txt
XML is instance of XMLDocument.