Convert Java String to an InputStream
So I decided to use JDOM to parse XML for XMPP replies for my current project. In order get a Document object out of JDOM I had to use the SAXBuilder to build it.
Eventually, I realised the build() method only accepts an InputStream, URL, URI… just not an XML created from the String object. Well [...]
