revCreateXMLTreeFromFile
Mike Doub
Mike at Doub.com
Tue Mar 1 03:46:00 EST 2005
Thanks Sarah, that got me past another hurdle.
I am trying to use the handler feature to restore data and it seems that
while the data is being parsed the revStartXMLData handler is called
multiple times for each data element. It seems like it is called for every
return. (When I saved the data, I replaced "><" with (">" & return "<"))
This behaviour was not documented but it is easy to work around.
Regards,
Mike
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Sarah Reichelt
Sent: Tuesday, March 01, 2005 2:33 AM
To: How to use Revolution
Subject: Re: revCreateXMLTreeFromFile
Hi Mike,
Have you looked at my XML demo stack? It's on my web site at
<http://www.troz.net/Rev/>
I found that with Mac OS 9, revCreateXMLTreeFromFile didn't work, so I
include an alternative method which is to read the file into memory and
use revCreateXMLTree instead.
However judging by your error message, you are trying to call
revCreateXMLTreeFromFile as if it is a handler, when it is actually a
function. Remember that with functions, the parameters must be in
brackets, but you must also give them somewhere to put the result.
e.g. put revCreateXMLTreeFromFile(tFileName, false, true, false) into
tDocID
Cheers,
Sarah
On 01/03/2005, at 5:19 PM, Mike Doub wrote:
> I am trying to use revCreateXMLTreeFromFile, but I keep getting the
> error
> message that the handler is not found. Can anyone provide me with some
> incite on this?
>
> Where is the XML Library stack so I can poke around and see if it
> really
> exists?
>
> Thanks,
> Mike
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list