0

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.

Mike Flynn
  • 22,342
  • 54
  • 182
  • 341

1 Answers1

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