I have an app that displays contents of an xml file that is stored on a server. The xml file contains a list of events and these events have categories. I want to be able to select which category I want then only display the events for that category. So I created a new xml with a spinner but I have no idea what I need to change in the code so for example if I select the film category only the film events are displayed. I know i will also need to change the events xml file.
here is some of the xml file:
and here is main
java class that displays the xml file from the server: