RE: [xml-dev] Output to string

From
Michael Kay <>
To
'jrReoooooooo' <>,
Date
2001-11-24T11:06:07
ID
<001901c174d8$058dedb0$acc469d5@pcukmka>
Thread
RE: [xml-dev] Output to string
> i have an xml and xsl documents. is there a way that the output be
> directed to string instead of a file?

Sure, but the way you do it depends on the processor you're using. If it's a
processor that supports the JAXP 1.1 interface (e.g. Saxon or Xalan), just
specify a StreamResult as the destination, with the StreamResult set up to
write to a StringWriter.

Mike Kay