I am following a guide, and it gives me the following code:
InputSource inputSource = new InputSource(new FileInputStream(new File("/path/to/xml/file.xml"))));
What I would like to know, is how I can still create an org.xml.sax.InputSource
, but instead of reading the content of a file, use a String
variable that I already have.