$pip install gpxconverter
$gpxconverter -i <input file> -o <output file>
Note: 'csv' extension is not required for output filename.
It will extract waypoints information from input file to a csv file.
Waypoints will be saved as [output file]_wpt.csv
Route will be saved as [output file]_rte.csv
GPX XSD is available at the below link.