Skip to content

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.

Notifications You must be signed in to change notification settings

X3nonC0der/XML-Visualisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XML-Visualisation

Generic badge Generic badge Generic badge

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.

Compresseion

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.

Visualisation

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.

GUI

The GUI is done using the Tkinter library. The gui.py file contains the GUI code. The GUI has 3 buttons:

  • Compress button: This button compresses the XML file and asks the user to save the compressed file.
  • Decompress button: This button decompresses the XML file and asks the user to save the decompressed file.
  • Analyse button: This button analyses the XML file and shows the analysis in a new window.
  • Visualise button: This button visualises the XML file and shows the visualisation in a new window.

Installation

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

Usage

python main.py

Authors

Acknowledgements

License

MIT

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages