|11-01-2010, 07:09 PM||#1|
Join Date: Feb 2009
Cross-browser xml reading.
Hello, I've googled the hell out of this and searched these forums, but can't find a tutorial in laymens terms for me to understand, also, they are all nearly completely different.
I want to be able to get the xml from here: http://feeds.bbci.co.uk/news/world/rss.xml
Can anyone provide a simple tutorial on how to do this?
p.s I have a simple knowledge of JS such as simple if statements, other simple statements and changing CSS properties.
Last edited by Adam_C; 11-01-2010 at 07:30 PM..
|11-07-2010, 06:41 AM||#2|
Join Date: Dec 2004
So assuming your knowledge of AS, the question is how do you read XML with AS? You use an XML parser (built in flash).
Just listing the broad steps below:
1. Your HTML document is ready (in other word your DOM tree is complete)
2. Once ready you use ajax to request the XML document (your chosen framework should let you do that)
3. once the ajax call returns the XML you pass it on to your framework's parser and the parser should give you an object.
4. Use this object to populate your html
The frameworks you could look at are jquery, YUI, mootools, etc.