Skip to content

XML parsing and evaluation app with a GUI, using XPath expressions to search for matches. Saves matches to a CSV file with extended support to convert the CSV file to a different file type.

License

Notifications You must be signed in to change notification settings

zaricj/XMLuvation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XMLuvation - XML Parsing and Evaluation Tool for Matching XPath Expressions

Logo_Full_Transparent_Croppedxml_transparent_150x150Geis Logo Transparent

Overview

XMLuvation is a Python application designed to parse and evaluate XML files. It provides a user-friendly interface for performing various operations such as reading XML files, filtering XML content based on XPath Expressions and look for matches in a single or multiple XML Files in a specified Folder, exporting the evaluation results to a CSV file.

Features

  • XML Parsing and Evaluation: XMLuvation allows users to read a XML file and view it's content.
  • XPath Filtering: Users can filter and look for matches in XML content using XPath expressions, which can be added to a Listbox, where the added Filters are used for Evaluation.
  • Export to CSV: Evaluation results can be exported to a CSV file for further analysis or processing.
  • User Interface: The application features a simple and intuitive graphical user interface built using the PySimpleGUI library.

Installation

To run XMLuvation, you need to have Python installed on your system. The required dependencies are as follows:

Requirements

  • Python 3.x
  • PySimpleGUI library (install using pip install PySimpleGUI)
  • lxml library (install using pip install lxml)
  • pandas library (install using pip install pandas)
  • tabulate library (install using pip install tabulate)
  • openpyxl library (install using pip install openpyxl)
  • csv library (included in the standard Python library)
  • os library (included in the standard Python library)
  • re library (included in the standard Python library)
  • webbrowser library (included in the standard Python library)

Usage Guide

  1. Select Folder: Choose a folder containing XML files.
  2. Read XML: Read an XML file from the selected folder to extract tag and attribute information.
  3. Build XPath: Build XPath expressions based on selected tag and attribute values.
  4. Add XPath Filter: Add XPath filters to match specific criteria in XML files.
  5. Export as CSV: Export evaluation results, including matched XML files and corresponding XPath filters, as CSV files..

Additional Information

XPath Syntax Help: Access a quick reference guide to XPath syntax for building expressions.

Support

If you encounter any issues or have any feedback, please feel free to open an issue on the GitHub repository.

Credits

XMLuvation was created by me. It utilizes the PySimpleGUI library for building the graphical user interface and the lxml library for parsing XML files.

License

This project is licensed under the MIT License.

Screenshot

Main View

image

CSV Conversion View

image

About

XML parsing and evaluation app with a GUI, using XPath expressions to search for matches. Saves matches to a CSV file with extended support to convert the CSV file to a different file type.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages