I have an xml file that looks like this:
<root> <application-key>ABC2349293493</application-key> ... .. </root>
The XML file is quite large, and I just need to get the application key to find out if this request should be restricted.
My server gets knocked, so I need a way to evaluate limit requests without having to read all of the xml.
DOM is out of the question due to the amount of memory.
I am pleased with SAX, but with xerces you cannot stop processing xml since it is a push model. The only way I know so far is an exception.
Does any of the other saxophonic libraries support early withdrawal?
source share