I am trying to obtain some data from an xml file using a SAX parser in java- I dont want to do anything for certain elements within the xml (ie ignore them, because I dont require those elements).
Do I just have to ignore those specific elements in “startElement” and “endElement”? Is that the correct way to not do any processing for certain elements?
Yes, exactly. You’re free to process the events you receive in whatever way you’d like, which certainly includes ignoring any uninteresting elements.