Giter Site home page Giter Site logo

merzak-x / simplexml Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 4.0 29.94 MB

SimpleXML is a simple, easy to use Simple non complex XML, XLSX, XLS & CSV Documents manipulation program.

License: GNU Affero General Public License v3.0

C# 100.00%
xml xml-reader xml-editor simple-xml xlsx-workbook xlsx-export xlsxreader csv-import csv-export csv-reader

simplexml's Issues

Message Boxes

Add icons to MessageBox using , MessageBoxIcon.TYPE

Entity name transmission

New table generates ExceptionBuilder.CanNotSerializeDataTableWithEmptyName when saving, caused by entityName@NewTable::class@:58, value not passed properly.

Export empty table

Disallow exporting an empty table under File->Export->toDB@Main, by checking its columns/rows.

Add menu bar

Add File[New, Open, Save, Export[XML, CSV, DB], Exit], Edit[[x]Read Only] & Help[Info]

@Yassine-Ag TODO List

@Yassine-Ag your TODO list here:

  • Add function to test the SQL Connection
  • Test and finish the XML2DB->export2DB() / XML2DB->importDB() / XML-GUI->Conn-DB
    (Which is just a basic display of the DB table contents to the DataGridView)
  • Redesign the UI @MERZAK-X did
  • Handel Exceptions
  • A Database connection Form (that returns DataSet through a public member function) that opens a new XML-GUI Form using a new Constructor XmlGUI(DataSet ds)

Please be aware that although I tried using Windows10 with a bootable USB Drive, I wasn't able to install MS-SQL server and its components, this is why I opened #2

Escaping Strings

Use SecurityElement.Escape(str) instead of Regex.Escape(str).

Dialog Forms

Open Dialog forms as form.ShowDialog(parent), and not as independent Threads.

Save XML file

Add possibility to either save (to the current open file) or export the XML document

Save file

Saving files after #47, could cause file corruption for CSV and XLSX sometimes.

Edit cell

Add an Insert mode under edit to allow the user to edit a cell when selected.

Current XML Document

Update the current XML Document path currentOpenXmlPath after exporting a document

Close Form

Closing Form without closing its child

Entity name in generated XML

The generated xml document contains data as following, the <XmlDocument> tag should be replaced with the name of the objects inside the document.

<?xml version="1.0" standalone="yes"?>
<DocumentElement>
-  <XmlDocument>
    <id>1</id>
    <name>TEST</name>
-  </XmlDocument>
<?xml version="1.0" standalone="yes"?>
<DocumentElement>
+ <user>
    <id>1</id>
    <name>TEST</name>
+ </user>
</DocumentElement>

Search bar

Add search bar to search for a value in the data table.

NewTable Dialog

NewTable Dialog should have a fixed size, and unable to be resized.

Add icons

Add icons to /lib for the title bar and exe

Close child forms

Child forms OwnedForms shall be closed and not disposed if parent form closes.

Add new file

Add the ability of creating a new file from scratch

Open Document MessageBox

When opening an invalid XML Document, the MessageBox displays the XmlGUI_DragDrop_wrongXmlExt_msg &! XmlGUI_Open_wrongXmlExt_msg.

Thread fileDialog.ShowDialog()

fileDialog.ShowDialog() in exportXml()@XML-GUI.cs causes :
System.Threading.ThreadStateException <- System.Windows.Forms.FileDialog.RunDialog

Copy/Paste Keys

Add copy/paste support for rows & cells based on user preferences under edit.

Export PK Violation

Exporting a table that has existing database primary keys, throws a PK violation SQLException.

Save new XML Doc

Change !readOnly.Checked || !newXmlDoc to !readOnly.Checked && !newXmlDoc in XML-GUI.cs@80

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.