Modify Existing Java XML Parsing Application to Include New XML Nodes

Job ID: 31938111

Budget: $30 – $250 USD

I have an existing Java application (created in Eclipse IDE) that parses specific XML data and outputs the data in a flat CSV format. The XML input data I receive has recently changed....new nodes have been added, but I don't know enough about Java to know how to modify the Java code to capture the new nodes and add them into the output CSV.

An <Addresses> node has been added under the <Employee> node with potentially several <Address> nodes underneath that. My existing Java application needs to be updated to parse the <Addresses> nodes and all sub-nodes and include them in the CSV.

Here is the basic structure with the new XML nodes indicated:

<Companies>
<Company>
<Employees>
<Employee>
<Addresses> <----new node
<Address> <----new node
<Address1>...</Address1> <----new node
<Address2>...</Address2> <----new node
<City>...</City> <----new node
<State>...</State> <----new node
<Province>...</Province> <----new node
<ZIP>...</ZIP> <----new node
<Country>...</Country> <----new node
<AddressType>...</AddressType> <----new node
</Address> <----new node
<Address> <----new node
<Address1>...</Address1> <----new node
<Address2>...</Address2> <----new node
<City>...</City> <----new node
<State>...</State> <----new node
<Province>...</Province> <----new node
<ZIP>...</ZIP> <----new node
<Country>...</Country> <----new node
<AddressType>...</AddressType> <----new node
</Address> <----new node
</Addresses> <----new node
</Employee>
</Employees>
</Company>
</Companies>


I am also attaching two XML files with fake data as examples. The "old.xml" file represents the old version of the XML data, and "new.xml" represents the new version with the new address nodes.

Since there are potentially multiple <Address> nodes, I envision the output CSV having columns like:

A1_Address1, A1_Address2, A1_City, A1_State, A1_Province, A1_ZIP, A1_County, A1_AddressType, A2_Address1, A2_Address2, A2_City, A2_State, A2_Province, A2_ZIP, A2_County, A2_AddressType, etc....

I will provide you with the existing raw Java code to begin work, and I will be available to help with any questions you may have.

Deliverables at project conclusion will include the Java JAR and the raw Java code.

Strong English skills are a plus to facilitate good communication. To demonstrate that you have read all of the project details, please include your favorite color in your response.