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

Read an XML Data type of workbench process through Java

  • November 3, 2017
  • 2 replies
  • 2243 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

manoj_devapath
Level 5
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

Lee__AAdobe EmployeeAccepted solution
Adobe 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.