HTML 5 and XML Parsing externals

Bringing your stacks to the web

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
klvs2001
Posts: 13
Joined: Wed Nov 11, 2015 6:27 pm
Location: Hendersonville TN

HTML 5 and XML Parsing externals

Post by klvs2001 » Wed Jan 06, 2016 10:50 pm

I am in the middle of creating an app which uses revxml commands to parse XML returning from a Web Service.

Does anyone on the forum have experience with this combination?

The "regular" build works fine for Windows...since I can include the XML externals.

So any information would be useful.

Thank you.

Thomas

peter-b
Posts: 182
Joined: Thu Nov 20, 2014 2:14 pm
Location: LiveCode Ltd.

Re: HTML 5 and XML Parsing externals

Post by peter-b » Wed Jan 06, 2016 11:03 pm

The HTML5 engine doesn't support externals (and is unlikely ever to do so!)

However, in a future release I hope to make it possible to put JavaScript code in a LiveCode Builder extension, which would let me achieve the same sort of things that an external can.
LiveCode Open Source Team — @PeterTBBrett — peter.brett@livecode.com

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1683
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: HTML 5 and XML Parsing externals

Post by [-hh] » Wed Jan 06, 2016 11:38 pm

peter-b wrote:However, in a future release I hope to make it possible to put JavaScript code in a LiveCode Builder extension, which would let me achieve the same sort of things that an external can.
Peter, that would be great, even better than the 'unsupported' branch. One could use by that the whole wide world of (good) js-libraries.
shiftLock happens

klvs2001
Posts: 13
Joined: Wed Nov 11, 2015 6:27 pm
Location: Hendersonville TN

Re: HTML 5 and XML Parsing externals

Post by klvs2001 » Thu Jan 07, 2016 12:51 am

Peter, thanks for the confirmation.

The Web Service I am using as a source can also produce JSON...It's just not as trivial to parse as using the externals.

So I might have to use that route IF I want to make a Web App.

Perhaps I can code an extension to parse the XML in LiveCode.

peter-b
Posts: 182
Joined: Thu Nov 20, 2014 2:14 pm
Location: LiveCode Ltd.

Re: HTML 5 and XML Parsing externals

Post by peter-b » Thu Jan 07, 2016 8:20 am

You could use the JsonImport() function from the com.livecode.library.json extension (which is included with recent LiveCode 8 DP releases), or you could use FastJson!
LiveCode Open Source Team — @PeterTBBrett — peter.brett@livecode.com

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: HTML 5 and XML Parsing externals

Post by malte » Thu Jan 07, 2016 11:20 am

Ken Ray has a liveCode Script only library to deal with XML. I prefer the external on Desktop, but this could move you forward for your web app...

Cheers,

Malte

http://www.sonsothunder.com/products/xmllib/xmllib.htm

klvs2001
Posts: 13
Joined: Wed Nov 11, 2015 6:27 pm
Location: Hendersonville TN

Re: HTML 5 and XML Parsing externals

Post by klvs2001 » Thu Jan 07, 2016 11:50 pm

Thanks to everyone for the advice and help.

The extensions for JSON seem to work properly. FastJson doesn't seem to work for me but that is likely my ignorance.

I have not attempted the XML stack approach.

I am a bit thick on how to get the extensions to "compile" for the Web....it compiles properly for a desktop version

I have used the Standalone Settings to ask for the Json extension to be included but the Json portion of the code doesn't seem to be present

Any ideas are certainly welcome

Thank you,

Thomas

Post Reply

Return to “HTML5”