We have a java based enterprise web application. User enter / edit data using web forms and that data usually goes to the database.
Some user data is gathered just to send it through a web service. So the process is
- enter data (which is turned into a xml document)
- optionally edit data (which modifies above xml document)
- send it to a 3rd party web service
I wonder if there is a clever way to accomplish the tasks of converting the form data into xml (step 1) and especially from xml to web form and back (step 2). Some data in the xml is static (not editable) and data may be in both attributes and elements.
Any ideas?