In my Scala code, I get a response from the server using the getInputStream method of the HttpUrlConnection class. The answer is XML data. However, the data does contain HTML objects such as & and ' .
Is there a way to replace these characters with my text equivalent so that I can parse XML correctly?
james source share