This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
how to have as-xml output to e.g. a (Scheme) string/port?
- From: "Hoehle, Joerg-Cyril" <Joerg-Cyril dot Hoehle at t-systems dot com>
- To: kawa at sources dot redhat dot com
- Date: Wed, 15 May 2002 10:01:25 +0200
- Subject: how to have as-xml output to e.g. a (Scheme) string/port?
Hi,
> > as-xml, (require 'xml) are not mentioned in the documentation
> as-xml should be documented, though the implementation is poor.
It seems to always output to the current "consumer" -- whatever that is.
Even
(with-output-to-file "C:/WinNT/TEMP/kawaXML.xml"
(lambda () (as-xml (make-element 'p "The time is now: " (make-element 'code (make <java.util.Date>))))))
yields an empty file and still prints to the terminal.
Is this a Java question?
Why is gnu/kawa/slib/XML.scm print-nsxml-from-url commented out? It looks like it shows how to link a consumer to a Scheme port?
Thanks for your help,
Jorg Hohle.