0

I was trying to make an app which has a component that will make an HTTP request and receive a XML file. I need to parse the file to display some data. I was using MIT App Inventor. How can I do that using the app inventor? If it is not possible by that approach then how I can do it in traditional manner?

And is it possible to import MIT App Inventor project to another IDE like Eclipse?

Thank you for your time.

Quazi Farhan
  • 1,425
  • 7
  • 18
  • 29
  • 1
    Use saxParser.see http://stackoverflow.com/questions/4827344/how-to-parse-xml-using-the-sax-parser – Shehzad Apr 15 '12 at 14:54
  • 1
    Does it need to receive XML? @ZiG gave you a good way to receive JSON. There were examples that parsed XML but App Inventor has support for reading JSON and csv – Gary F Apr 18 '12 at 14:19
  • It needed to receive xml at that point. Fortunately I got a workaround on that. Thanks. – Quazi Farhan Apr 18 '12 at 18:18

3 Answers3

1

You have to hard code it like JSON-

https://imagnity.com/tutorials/app-inventor/web-component-json-response-on-app-inventor

No, you can not import in Eclipse.

Sajal Dutta
  • 18,272
  • 11
  • 52
  • 74
  • to import an App Inventor project into Eclipse, see [this thread](http://stackoverflow.com/questions/13444959/tips-to-shift-from-app-inventor-to-eclipse) – Taifun May 18 '13 at 15:15
1

Taifun's link is broken, but the new link can be found here: App Inventor Developers

0

Importing an app inventor to eclipse project is possible but with some limitations.It's a java bridge project(uses Java Bridge library) which converts existing MIT app inventor project to Java.

Follow the link to convert: https://appinventortojava.appspot.com/login/

Video Link: https://www.youtube.com/watch?v=FqNTc4DVYW8

Shubham Jaiswal
  • 570
  • 5
  • 11