I currently am helping my father out with his construction website. He asked me if there was anyway I could automate estimates for his customers "bids" and I built him a desktop prototype application over night. The desktop application is a Swing application that uses java's XMLEncoder/Decoder to load and save files and lets him edit what items customers can select (along with pictures, hourly rates etc.). He liked the prototype so much that he asked me to add this to his website.
I am not a very experienced web-dev (I've never done it in industry) but agreed and am about to start implementation. The goal of this project is to allow him to use the easy to use desktop Swing application to generate XML for how the "Bidding Menu" should look, and then for the website to use Javascript to read the XML to generate all of the items. My question as a noob on web-dev is, what is the proper way to read XML to generate a web-page? I was looking for something akin to an XML decoder in JS but only found the XMLDOM. Any general tips/tutorials/heursistics would be very appreciated.
Below is a demo XML file from the prototype, every set will be a different with each item being a prototype that you can enter the quantity of and the total for the set and all sets will be reflected on the web page.
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.8.0_60" class="java.beans.XMLDecoder">
<object class="bidTool.models.BidToolModel" id="BidToolModel0">
<void property="bidItems">
<void method="add">
<object class="bidTool.models.ItemSet" id="ItemSet0">
<void property="description">
<string>Testing Testing 123</string>
</void>
<void property="mySubsets">
<void method="add">
<object class="bidTool.models.ItemSet" id="ItemSet1">
<void property="description">
<string>Testing Testing 123</string>
</void>
<void property="myItems">
<void method="add">
<object class="bidTool.models.BidItem">
<void property="cost">
<double>10.0</double>
</void>
<void property="itemName">
<string>Marble Tile</string>
</void>
</object>
</void>
<void method="add">
<object class="bidTool.models.BidItem">
<void property="cost">
<double>10.0</double>
</void>
<void property="itemName">
<string>Ceramic Tile</string>
</void>
</object>
</void>
</void>
<void property="setName">
<string>Tieling</string>
</void>
</object>
</void>
</void>
<void property="setName">
<string>Bathroom</string>
</void>
</object>
</void>
</void>
<void property="globalItems">
<void method="add">
<object class="bidTool.models.BidItem">
<void property="cost">
<double>34.243</double>
</void>
<void property="itemName">
<string>Toilet</string>
</void>
</object>
</void>
</void>
</object>
</java>