playing with XML stuff

Nic Ferrier nferrier@tapsellferrier.co.uk
Fri Dec 20 10:36:00 GMT 2002


I've just been playing with some of the XML stuff, I've not tried any of
this before. I came across some things I find confusing.

The manual says that this:

(make-element 'p "The time is: " (make-element 'code (make
<java.util.Date>)))

should make a TreeList which looks like this:

<p>The the is: <code>date...</code></p>

But when I do this:

(print-as-xml
  (make-element 'p "The time is: "
      (make-element 'code (make <java.util.Date>))))

I get the following:

<pThe time is: ><code>Fri Jan 04 13:59:40 GMT 2002</code></p>

Incidentally this is consistent with the return value of the
(make-element ...) expression.

I'm using the latest kawa build (but not the CVS build) for this.


Nic



More information about the Kawa mailing list