how to load a table from a xml file ?

You must Login before you can answer or comment on any questions.

hello

I'd like to create a table with several lines but I can not manually enter data such as in the examples of kitchen sink

I have to load those data from an xml file so I think I will have a function

can you give me an idea about a feature that could make it load a table from an xml file

thank you

1 Answer

Accepted Answer

You can get the data from the XML file, put it in tableViewRows and fill the tableview with those rows.

Check the kitchensink example 'xml_dom.js' or 'xml_rss.js' example. DOM shows you how to read the xml file.

I think the xml_rss file is more useful for you since it fills a tableview with an XML file.

Hope this helps you!

Tjeu

— answered 2 years ago by Tjeu Vdw
answer permalink
9 Comments
  • thank you very much you're a love I will study the file xml_rss.js to see how it works

    I start with all that and I stress when I have enough problem :)

    — commented 2 years ago by sabrina sabrina

  • in fact I want to load my table with just the songs on my xml file

    using the code xlm_rss I have a concern at this level

    var doctitle = doc.evaluate ("/ / channel / title / text ()"). item (0). nodeValue;

    I do not know what it must match "/ / channel / title / text ()"

    — commented 2 years ago by sabrina sabrina

  • Can you show me the structure of your XML file?

    — commented 2 years ago by Tjeu Vdw

  • Show 6 more comments

Your Answer

Think you can help? Login to answer this question!