App Inventor 2 with XML parsing support

4,277 views
Skip to first unread message

seangx

unread,
Feb 25, 2014, 9:17:30 PM2/25/14
to app-inventor-o...@googlegroups.com
Hi guys, I added XML parsing support to Web component since it's asked by many users and is widely used in many APIs. Do not hesitate to try it and give feedbacks!
I put detailed information in the design document https://docs.google.com/document/d/1QKVo-ylGLhCHqV5JcAnA4QwMfw30T7-ZS4EuC6CU-3c/edit?usp=sharing , and this pull request in github: https://github.com/mit-cml/appinventor-sources/pull/86

scottfromscott

unread,
Feb 26, 2014, 7:28:30 AM2/26/14
to app-inventor-o...@googlegroups.com
Here's the link to seangx's XML Parsing support proposal: https://docs.google.com/document/d/1_R_lKg2dzrBUeCn6luLOSVL2iwWlXFlMKejOpBm-g68/edit
---
Scott

Taifun

unread,
Feb 26, 2014, 8:43:19 AM2/26/14
to app-inventor-o...@googlegroups.com
great! looking forward to that block!
my suggestion is to rename it to XmlTextDecode similar to the JsonTextDecode block
Taifun

seangx

unread,
Feb 26, 2014, 9:18:35 AM2/26/14
to app-inventor-o...@googlegroups.com
Ok, to keep the naming style.

Abraham Getzler

unread,
Feb 26, 2014, 10:50:56 AM2/26/14
to app-inventor-o...@googlegroups.com
Great example aia file.

I wish the Block Editor docs for blocks like this had links to sushi-sized use case screenshots like this ...

Inline image 1
ABG


--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at http://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/groups/opt_out.

XMLTextDecodeExampleYahooWeatherAPI.jpg

seangx

unread,
Feb 26, 2014, 11:52:00 AM2/26/14
to app-inventor-o...@googlegroups.com

RobNCD

unread,
Mar 13, 2014, 7:27:46 PM3/13/14
to app-inventor-o...@googlegroups.com
Could this be implemented into the AI Classic code as well?

Ollydave

unread,
May 5, 2014, 5:26:47 AM5/5/14
to app-inventor-o...@googlegroups.com
Hi, I have AI2LiveComplete. Please How do I add this feature to it?

M. Hossein Amerkashi

unread,
May 5, 2014, 7:45:08 AM5/5/14
to app-inventor-o...@googlegroups.com
These are proposals to solicit feedback from others and don't exist in any versions.




--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at http://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

M. Hossein Amerkashi

unread,
May 5, 2014, 9:52:00 AM5/5/14
to app-inventor-o...@googlegroups.com
FYI, I'm also working on alternatives for JSON parsing; see attached.

-Hossein.


On Monday, May 5, 2014 7:45:08 AM UTC-4, M. Hossein Amerkashi wrote:
These are proposals to solicit feedback from others and don't exist in any versions.


On Mon, May 5, 2014 at 5:26 AM, Ollydave <ollyda...@gmail.com> wrote:
Hi, I have AI2LiveComplete. Please How do I add this feature to it?


On Wednesday, 26 February 2014 03:17:30 UTC+1, seangx wrote:
Hi guys, I added XML parsing support to Web component since it's asked by many users and is widely used in many APIs. Do not hesitate to try it and give feedbacks!
I put detailed information in the design document https://docs.google.com/document/d/1QKVo-ylGLhCHqV5JcAnA4QwMfw30T7-ZS4EuC6CU-3c/edit?usp=sharing , and this pull request in github: https://github.com/mit-cml/appinventor-sources/pull/86

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
To post to this group, send email to app-inventor-open-source-dev@googlegroups.com.
foo.png

Taifun

unread,
May 5, 2014, 1:19:59 PM5/5/14
to app-inventor-o...@googlegroups.com
@Hossein: why don't you just convert the JSON into a list and use the lookup in pairs block instead?
Taifun

Cameron Boyer

unread,
May 6, 2014, 3:22:59 PM5/6/14
to app-inventor-o...@googlegroups.com
Could someone help me with parsing the 'code' in the '<yweather:condition' tag from this xml file http://weather.yahooapis.com/forecastrss?w=28218&u=c

e.g.
The 28 in <yweather:condition text="Showers in the Vicinity" code="28" temp="13" date="Tue, 06 May 2014 7:49 pm BST"/>

Thank You for helping.
Cameron

Taifun

unread,
May 6, 2014, 3:31:19 PM5/6/14
to app-inventor-o...@googlegroups.com

Taifun

unread,
May 6, 2014, 3:33:03 PM5/6/14
to app-inventor-o...@googlegroups.com
sorry, wrong answer, I thought, I'm in the MIT App Inventor forum ;-)
Taifun

Cameron Boyer

unread,
May 7, 2014, 1:31:36 PM5/7/14
to app-inventor-o...@googlegroups.com
Thank you, where can I find the class parse, is it on this thread?

Jos Flores

unread,
May 7, 2014, 1:49:32 PM5/7/14
to app-inventor-open-source-dev
Please do not hijack threads, and keep programming questions in the
programming forums. Thanks!

cheers,
José



On 7 May 2014 13:31, Cameron Boyer <boye...@googlemail.com> wrote:
> Thank you, where can I find the class parse, is it on this thread?
>
> --
> You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
> To post to this group, send email to app-inventor-o...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages