The European Centre for Disease Prevention and Control provides daily data on the coronavirus pandemic (COVID-19) through the EU Open Data Portal. The downloadable data files are updated daily and contain the latest available public data on COVID-19. The data is provided in XML format as you see in the following example:
-
XML: https://opendata.ecdc.europa.eu/covid19/casedistribution/xml/
- In this application I used dom parser to parse documents
- I used scene builder for design
- I used JavaFX GUI front-end and the supporting data structure to explore a large, real-life data set
Each XML element enclosed by the two tags and contains the date, daily numbers of COVID-19 cases and deaths of a particular country, and information about this country.I parse the given XML document to extract all of the records and then keep them in a right Collection implementation. After extracting the data from the specified XML file, I visualize it by using tables graphs.