//create default XML with data private void btnCreateXML_Click(object sender, RoutedEventArgs e) { XmlData.CreateXmlWithCars(); if (File.Exists("cars.xml")) { btnCreateXML.Content = "XML vytvoreno"; btnCreateXML.Background = Brushes.Green; fileName.Text = Path.GetFullPath("cars.xml"); } }