Hi,

this struggle will soon be over with E4X. For now you can do a few things I
guess:

1. Use a class of someone else that transforms XML into an object. On Spark
there was a speaker that wrote the open source project 'pixlib'. In this
toolset there was a function called XML2Object If I'm correct. Looked nice
to me. 

2. Try finding other XML -> Object things

3. Write your own XML parser. Not to hard to do actually, just a lot of
testwork :)

Goodluck with it,

Marco



-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Jeff
Verzonden: donderdag 17 november 2005 18:26
Aan: [email protected]
Onderwerp: [Flashcoders] XMLConnector to DataSets Question

I'm building a Flash 8 application with a complicated data model.  I'm
importing data into the movie using an XMLConnector object and a schema like
so:

<authors>
   <author id="1" name="author 1">
      <books>
         <book id="1" title="book 1" year="1999">
            <chapters>
               <chapter id ="1" title="how to..." number="1" />
               ...more chapters here
            </chapters>
         </book>
          ...more books here
      </books>
   </author>
   ...more authors here
</authors>

I need this data to be available for 3 seperate DataGrids that need arrays
with rows having the following columns:
Authors:   ['id','name','book_count','chapter_count']
Books:     ['id','title','year','chapter_count']
Chapters: ['author_id','author_name','book_id','book
title','book_year','chapter_id','chapter_number','chapter_title']

For extra credit: The Authors and Books DataGrid will be used to filter the
Chapters DataGrid.  Eventually there will also need to be a text search
function, and the 'book_count' and 'chapter_count' columns will need update
to reflect the filtered amounts.

I've been trying to work with components on the stage, the component
inspector, and external .as classes to manipulate the data, but I've had no
success so far.  Does anyone have ideas to accomplish this type of data
manipulation?  Also, are their any good sites out there with examples of
working with complex data sets like this?

Thanks,
Jeff
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to