Skip to content

engRana404/XML_Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XML Editor

Introduction

This is a University project, where students could apply data structure concepts to a real-life project. At the end of this project, our team could be able to effectively implement different data structures from scratch, build an XML editor and convert XML to JSON.

Idea

XML (Extensible Markup Language) is one of the most famous formats for storing and sharing information among different devices. Some text editors such as Sublime Text are able to parse such files and do some basic operations. In this project, we have worked on developing a GUI (Graphical User Interface) based program to parse and visualize an XML file.

Main Requirements

  • Building a GUI in which the user can specify the location of an input XML file.

  • Checking the XML consistency: The input XML may have inconsistencies like missing any closing and opening tags or not matching tags. The program should be able to detect and visually show any errors in consistency. Optimally, the program will also be able to solve the errors automatically.

  • Formatting (Prettifying) the XML: the XML file should be well formatted by keeping the indentation for each level.

  • Converting XML to JSON: JSON (Javascript Object Notation) is another format that is used to represent data. It’s helpful to convert the XML into JSON, especially when using javascript as there are tons of libraries and tools that use JSON notation.

  • Minifying the XML file: Since spaces and newlines (\n) are actually characters that can increase the size of an XML document. This feature should aim at decreasing the size of an XML file (compressing it) by deleting the whitespaces and indentations.

  • Compressing the data in the XML/JSON file.

How We Built It

The XML editor was built using QT for the interactive GUI. For the backend, we used C++ to enhance different functionality.

Current Contributors

About

XML and JSON editor using C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published