Feels like Im about to reinvent the wheel. Im having a message payload (e.g. from a client through a socket) in XML format (in a simple java.lang.String).
Below is an example what the payload could look like:
<update>
<type>newsource</type>
<sources>
<source>vedbyroad box 1492</source>
</sources>
</update>
I want to verify that the structure of the xml document really looks like this. Feels like the correct xml tool already is available for this?