This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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.