A. Write a java program to do the following
1. Read text files from Directory
2. Use the xml tags on the text files to
i. determine field names
ii. extract actual value
3.write details of i and ii above into a database (eg. mysql) table.
B.
i. Read the database-table fields
ii. Use the record ID of the records to write the records into
xml-based files to a given directory.
//i need a guide on the easiest way to achieve this as soon as possible, thanks.