I need to copy the contents of an incoming XML from an application into a file present at another location. This incoming XML is being using XMLStreamReader and is being stored in the HashMap table. The commands used are reader.getAttributValue(), where reader is the object of XMLStreamReader.
Note: Since the incoming XML is from an application, it doesn’t have a fixed location (JMETER/JBOSS is being used).