Is there a way to process a String into an XML object in Java. I
looked for examples and everything seems to be accessing URIs or Files,
and I am processing a a chunk of text that came in over a Socket. And
writing that to a file would be way inefficient. Any help?
Mike Schilling - 05 Apr 2006 01:11 GMT
> Is there a way to process a String into an XML object in Java. I
> looked for examples and everything seems to be accessing URIs or Files,
> and I am processing a a chunk of text that came in over a Socket. And
> writing that to a file would be way inefficient. Any help?
Most Java XML parsers take org.xml.sax.InputSource objects as inputs, and
these can be constructed from either InputStreams or Readers.