XMLuvation - XML Evaluation Tool that searches for matches based on one or multiple XPath Expressions
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 and exporting the evaluation results to a CSV file.
- 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, headers are created dynamically based on the added XPath Expression(s).
- Convert CSV to different filetypes: The CSV Evaluation result can be converted to different filetypes with the help of the Pandas module.
- Load CSV for display and filter content: Load the CSV file into a table view to display it's content and filter results based on the selected header.
- User Interface: The application features a simple and intuitive graphical user interface built using the the PySide6 library.
To run XMLuvation, you need to have Python installed on your system. The required dependencies are as follows:
- Python 3.x
3rd party and standard packages:
3rd Part Packages | Standard Packages |
---|---|
FreeSimpleGUI | csv |
lxml | os |
pandas | re |
tabulate | webrowser |
openpyxl | sys |
qt_material | pathlib.path |
pyside6 |
pip install -r requirements.txt
- Select Folder: Choose a folder containing XML files, the statusbar will show the total amount of found XML Files.
- Read XML: Read an XML file from the selected folder to extract tag and attribute information into the Comboboxes.
- Build XPath: Build XPath expressions based on selected tag and attribute values.
- Add XPath Filter: Add XPath filters to match specific criteria in XML files.
- Export as CSV: Export evaluation results, including matched XML files and corresponding XPath filters, as a CSV file.
XPath Syntax Help: Access a quick reference guide to XPath syntax for building expressions.
If you encounter any issues or have any feedback, please feel free to open an issue on the GitHub repository.
XMLuvation was created by me. It utilizes the PySide6 library for building the graphical user interface, the lxml library for parsing XML files and Pandas for converting the CSV file.
This project is licensed under the MIT License.