function parse_xml_data() {
// Replace 'path/to/your/file.xml' with the actual file path
$xml = simplexml_load_file('https://www.plavalna-zveza.si/wp-content/uploads/2023/12/INV-2023-12-10-KODELJEVO.zip');// Access XML elements and process data
foreach ($xml->MEETS->MEET->SESSIONS->SESSION->EVENTS->EVENT as $event) {
// Process each event
$eventName = (string)$event->SWIMSTYLE['Disciplina'];
// Process further or store data as needed
// Example: Display event names
echo '
' . $eventName . '
'; } }// Hook this function to execute it in WordPress add_action('wp_loaded', 'parse_xml_data');