What does the return inside the if statements do in the following code?
public void startElement(String namespaceURI, String localName,String qName,
Yes. The return here will take the control out of method.
The returns in the above code will take you out of the method.