XML in cgi
Andre Garzia
soapdog at mac.com
Thu Jul 14 14:56:12 EDT 2005
On Jul 14, 2005, at 3:33 PM, David Brooks wrote:
> I'm using Revolution to handle cgi scripts under Apache. Works well
> with text files.
>
> I'm encountering trouble when trying to use XML commands/functions.
> Because revCreateXMLTreeFromFile was added in Ver. 2, I'm assuming
> it is a part of the currently available Darwin engine (used for
> cgi). This function does not seem to be working in cgi (see examples).
>
> Any suggestions?
>
> Thanks.
>
> Dave B.
>
Dave,
try not using the Darwin engine, try pulling your macos engine from
inside the Revolution bundle. Run it with the -ui argument like:
#!revolution -ui
I don't think the darwin engine included the XML libraries... you can
always load the external.
Cheers
andre
> _____________________________________________
> Works:
> #!revolution
>
> on startup
> put ("Content-Type: text/plain" & cr & cr) into xxx
> put "Hello World!" after xxx
> put "/Library/WebServer/CGI-Executables/CHEM869J-Dave_Brooks.xml"
> into studentFilePath
> put URL("file:"&studentFilePath) into rrr
> put rrr after xxx
> put xxx
> end startup
> _____________________________________________
> Fails:
>
> #!revolution
>
> on startup
> put ("Content-Type: text/plain" & cr & cr) into xxx
> put "Hello World!" after xxx
> put "/Library/WebServer/CGI-Executables/CHEM869J-Dave_Brooks.xml"
> into studentFilePath
> put revCreateXMLTreeFromFile(studentFilePath,true,true,false)
> into studentRecordXML_ID
> put xxx
> end startup
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list