OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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