Sign in to Community
Sign in to view all badges
I have an workbench process which has an output parameter as a XML as data type.
How can I read it through my java code and convert it into string.
Any help please.
There's really nothing complex to do here. In your process, update your string variable with the xml variable and the conversion will happen for you automatically. Don't use java to do this.
There are muliple ways to handle xml reponse one of the ways is parsing xml InputStream using DocumentBuilderFactory
parsing xml InputStream using DocumentBuilderFactory
InputStream using DocumentBuilderFactory
here is one good resource:
java - HTTP request for XML file - Stack Overflow
How to read XML response from a URL in java? - Stack Overflow