Urgently Need direction in using XML with Corona

Hello,

I am working on a camera&recorder project which executes as follows:

Upon touch, the camera takes picture, and audio starts recording. Upon next touch:

  1. the previous picture is saved as “image1.jpg”
  2. recording stops and audio file saved as “audio”
  3. next picture is taken
    4.next audio starts recording.

This is the recording/capturing part, which is working fine.

Next I have to play the recorded material. for example: from a menu, if image3 is selected, image 3 is displayed on the screen and audio3 starts playing. Now this requires linking the audio files with the images using XML.

I am totally new to XML and I dont know how to use it in Corona. I couldn’t find an example to learn from.

Could anyone please tell me how to make the XML file, how to link it to corona and how to achieve the required goal?

Thanks a lot [import]uid: 175611 topic_id: 33695 reply_id: 333695[/import]

Unless there is a requirement that you haven’t listed I don’t see why XML is needed? Wouldn’t JSON be fine? It is much easier to work with. [import]uid: 119420 topic_id: 33695 reply_id: 134017[/import]

ok, Maybe using JSON is the right option, but I’m new to it. Could you tell me how to work with it to achieve this task?

Thanks. [import]uid: 175611 topic_id: 33695 reply_id: 134020[/import]

This page should help you get started…

http://www.coronalabs.com/blog/2011/08/03/tutorial-exploring-json-usage-in-corona/ [import]uid: 200026 topic_id: 33695 reply_id: 134050[/import]

Thanks, but this doesn’t tell me how to link one file to another… or one image to one sound file.
no tutorials or examples avaialable related to that? [import]uid: 175611 topic_id: 33695 reply_id: 134104[/import]

Unless there is a requirement that you haven’t listed I don’t see why XML is needed? Wouldn’t JSON be fine? It is much easier to work with. [import]uid: 119420 topic_id: 33695 reply_id: 134017[/import]

ok, Maybe using JSON is the right option, but I’m new to it. Could you tell me how to work with it to achieve this task?

Thanks. [import]uid: 175611 topic_id: 33695 reply_id: 134020[/import]

Hello,
Is the solution as simple as managing an SQLite database within the app, with a simple one-to-one relational setup that includes the image name and the audio file name? Then you just look up both pieces of info?

Brent
[import]uid: 200026 topic_id: 33695 reply_id: 134249[/import]

You could probably use GGData for this. [import]uid: 119420 topic_id: 33695 reply_id: 134285[/import]

This page should help you get started…

http://www.coronalabs.com/blog/2011/08/03/tutorial-exploring-json-usage-in-corona/ [import]uid: 200026 topic_id: 33695 reply_id: 134050[/import]

Thanks, but this doesn’t tell me how to link one file to another… or one image to one sound file.
no tutorials or examples avaialable related to that? [import]uid: 175611 topic_id: 33695 reply_id: 134104[/import]

Hello,
Is the solution as simple as managing an SQLite database within the app, with a simple one-to-one relational setup that includes the image name and the audio file name? Then you just look up both pieces of info?

Brent
[import]uid: 200026 topic_id: 33695 reply_id: 134249[/import]

You could probably use GGData for this. [import]uid: 119420 topic_id: 33695 reply_id: 134285[/import]