Read an XML Data type of workbench process through Java | Community
Skip to main content
sobhan_sahu
New Participant
November 3, 2017
Solved

Read an XML Data type of workbench process through Java

  • November 3, 2017
  • 2 replies
  • 2239 views

Hi All,

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.

Thanks,
Sobhan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lee__A

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.

2 replies

Lee__AAccepted solution
Employee
November 3, 2017

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.

manoj_devapath
New Participant
November 3, 2017

There are muliple ways to handle xml reponse one of the ways is parsing xml 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