An open API service indexing awesome lists of open source software.

https://github.com/mazensayed91/xmleditor


https://github.com/mazensayed91/xmleditor

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# XmlEditor

## Introduction

A friendly GUI program to edit and manipulate XML files using a class we
wrote using Python. The class includes every method we made for satisfying the requirements of the project. We will walk through each method individually illustrating and explaining the implementation of each one.

## How to use?

- Clone the project
- Run this command in your terminal : pip install -r req.txt
- Run MainGUI.py

## Operations

- This is the interface that you can write/edit XML code

![image](https://user-images.githubusercontent.com/54520113/128754097-757fd55d-d20b-48f1-afbb-b3dd1c60cb91.png)

- Then if you loaded an XML file

![image](https://user-images.githubusercontent.com/54520113/128754235-02c24a8a-ea0d-4945-a048-65cdb037c71e.png)

- You can then apply any operation, prettify for example:

![image](https://user-images.githubusercontent.com/54520113/128754284-4d925593-3592-43dd-ae2f-ac0c10af6696.png)

- Minify:

![image](https://user-images.githubusercontent.com/54520113/128754325-04698d19-aec3-4d8b-a9f2-456957ea2c88.png)

- Save as XML or JSON:

![image](https://user-images.githubusercontent.com/54520113/128754376-9007652a-203e-49fa-bc35-abdb1efd5e78.png)

- Example for XML to JSON

XML:

![image](https://user-images.githubusercontent.com/54520113/128754506-5313fe8a-e81a-4d2d-bdae-a96492106889.png)

resulting JSON:

![image](https://user-images.githubusercontent.com/54520113/128754538-d6fb54f8-2184-4243-b6cf-e99441dbacb3.png)

- Also the program automatilcally detects errors:

![image](https://user-images.githubusercontent.com/54520113/128754626-86f47c89-2e02-489b-b70e-9087e97a060f.png)

## Complexity Analysis

In this section every piece of code is analyzed to compute its complexity.

![image](https://user-images.githubusercontent.com/54520113/128754795-1854e68b-1867-43d3-abd2-c4f1eff6bb99.png)