Using xml functions

Frank Leahy frank at backtalk.com
Sat Sep 11 15:54:16 EDT 2004


On Sep 11, 2004, at 5:00 PM, use-revolution-request at lists.runrev.com 
wrote:

> From: Bill <bill at bluewatermaritime.com>
> Subject: Using xml functions
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <BD688EC9.3536%bill at bluewatermaritime.com>
> Content-Type: text/plain;	charset="US-ASCII"
>
> I have been studying the excellent example stack xml-treeview and the 
> runrev
> documentation and as far as I can tell it is easier to generate a new 
> xml
> document by just hard coding
>
> Put "<NOTICE xmlns:xsi=" & quote &
> "http://www.w3.org/2001/XMLSchema-instance & quote & ">
>   <NOTICE_DETAILS>" & return &
>     "<CREATED_DATE_TIME>" & fld date & </CREATED_DATE_TIME>" after 
> mynewXML
> ...ect
>
>
> There are lots of cool functions in the library but (like  
> revAddXMLNode or
> revAppendXML ) it seems like it would be more complex to use them. Does
> anyone have a sample stack showing the building of an xml document from
> runrev that I could pull apart? What I am doing is converting MySQL 
> data to
> an XML document.
>

My experience is that the XML parser is useful for reading and getting 
data out of XML files, but you'll find it much easier to output XML as 
strings rather than building an XML tree and having the XML parser 
output (especially converting output from an MySQL database as you're 
doing).

-- Frank



More information about the use-livecode mailing list