This is a project to visualise XML files in a tree structure. It is written in Python and uses the Tkinter library for the GUI.
The XML files are compressed and decompressed using LZ77 algorithm. The algorithm is implemented in the compressor.py file. The compression is done using the compress function and the decompression is done using the decompress function.
The visualisation is done using the NetworkX library. The visualise function in the visualiser.py file takes the decompressed XML file and returns a NetworkX graph. The graph is then visualised using the draw function in the visualiser.py file.
The GUI is done using the Tkinter library. The gui.py file contains the GUI code. The GUI has 3 buttons:
Compressbutton: This button compresses the XML file and asks the user to save the compressed file.Decompressbutton: This button decompresses the XML file and asks the user to save the decompressed file.Analysebutton: This button analyses the XML file and shows the analysis in a new window.Visualisebutton: This button visualises the XML file and shows the visualisation in a new window.
To install the project, you need to have Python 3 installed. Then you can clone the repository and install the dependencies with pip:
Clone the repository and install the dependencies:
git clone
cd xml-visualisation
pip install -r requirements.txt
python main.py