[REBOL] Re: generating XML ?
From: cybarite:sympatico:ca at: 15-Jun-2002 8:12
In the rebol script library
http://www.reboltech.com/library/library.html pick the table entry "HTML/XML
Related"
there is an entry XMLGEN.r dated 4-Jun-1999 which takes a REBOL block
structure like
example: [
movie [
title "Star Trek: Insurrection"
star "Patrick Stewart" "Brent Spiner"
theater [
theater-name "MonoPlex 2000"
showtime 14:15 16:30 18:45 21:00
price [
adult $8.50
child $5.00
]
]
theater [
theater-name "Bigscreen 1"
showtime 19:30
price $6.00
]
]
]
and generates XML from it
<movie>
<title>Star Trek: Insurrection</title>
<star>Patrick Stewart</star>
<star>Brent Spiner</star>
<theater>
<theater-name>MonoPlex 2000</theater-name>
<showtime>14:15</showtime>
<showtime>16:30</showtime>
<showtime>18:45</showtime>
<showtime>21:00</showtime>
<price>
<adult>$8.50</adult>
<child>$5.00</child>
</price>
</theater>
<theater>
<theater-name>Bigscreen 1</theater-name>
<showtime>19:30</showtime>
<price>$6.00</price>
</theater>
</movie>
which you may find adequate. I don't think it will compete with what Andrew
is offering but might be a gentle start on what you need to accomplish. I
used it when I needed just to get some sample XML structures out for
discussion and was able to change the REBOL structure more easily then the
XML. It is just freeing you from the <start long tag>....</end long tag>
tedium ... but that may be what you are after.
No reply is needed either way.