xml data into php or js

iiyama

New Member
I am editing a web page and came across an xml problem. Currently the website uses an xml file with some information, which is sent to a flash app that displays that info in a scrolling headline. So the xml consists of a \[code\]<newsTicker>\[/code\] tag, and multiple items inside the tag:\[code\]<item><header>FEATURED ARTIST</header><date/><body>Some Artist</body><link>www.somelink.com</link><graphic>AnImage.gif</graphic></item>\[/code\]What I am supposed to do is write a javascript code that will get this info, and display it in the same way. The only problem is that I do not know how to parse each item from the xml into the javascript since I never worked with xml. I would even be more comfortable with getting the data into php and then rendering the js, but its not a big difference - however you can help me.Thanks!
 
Back
Top