I have to use the JDOM java api. Can anyone point me to some examples or let me know how to change the following xml using JDOM?
I have to locate the correct entity (e.g., entity = 50). If there isn't a value attribute, I have to create a value attribute set to some numeric number. If there is a value attribute, I have to change its number.
<entity id="45" value="234" />
<entity id="50" />