This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have an XML document in the following format : <Response> <Return code="0" /> .... ..... Now in the SAX parser i want to check the value of the attribute code.If the value is not zero an exception should be thrown. In the startElement method we can check for this condition.But if the value of code attribute is zero, i have to stop the parsing. how can it be done.