Skip to content

FejKer/xml-to-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XMLtoSQL

Web app for parsing users' data from XML and inserting it to MySQL database.

Used technologies:

  • Tomcat 9.0
  • JDK 1.8
  • jQuery
  • HTML/CSS

Configuration and installation

  1. Download .war file (available in releases) or compile the project by yourself and drop the file into {Tomcat Installation Path}/webapps

  2. Remember to edit WEB-INF/db.properties file to match your MySQL server settings

jdbc.driver=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/java
jdbc.username=java
jdbc.password=java

Index page 🌎

This is where you start. Choose either one of options. Links will take you to corresponding subpages.

1

File import 📁

On this site you can upload file of your own, that contains user data, formatted like so:

<users>
  <user>
	<name>user1</name>
	<surname>surname1</surname>
	<login>login1</login>
  </user>
  <user>
	<name>user2</name>
	<surname>surname2</surname>
	<login>login2</login>
  </user>
  <user>
	<name>usern</name>
	<surname>surnamen</surname>
	<login>loginn</login>
  </user>
</users>

For now the application parses only basic data, however it is a subject to change.

Users' data 👨

2

Here we can display, search or sort users' data that our database holds.

The MD5 hashcode appended to surname is just surname + _ + (MD5)name.

Used pagination to avoid downloading all of database's content everytime.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •