How can I read a raw XML string into jdom2 for manipulation? Everything I am finding on the web is to load a file from a url.
Asked
Active
Viewed 779 times
1 Answers
3
They also expose methods to load XML from a java.io.Reader, in which case you can create a StringReader from a String, like this:
StringReader xmlReader = new StringReader(myXmlString);

Blake
- 581
- 4
- 14