I've got a requirement to take an XML file and replace any existing value with one I generate from user input. Needs to only replace the existing value in the document.
I was looking at the simplest library SAX (https://docs.oracle.com/javase/tutorial/jaxp/sax/index.html) that is now in the standard JAVA JDK, but since this is an old project I was wondering if I should use something else like XMLT (https://docs.oracle.com/javase/tutorial/jaxp/xslt/transformingXML.html).
Can someone please advise the best (easiest) approach for this simple case?