MyBB Community Forums

Full Version: Display XML Data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I really need help in using XML Data, I haven't the first clue what I'm doing. Normally I'd look for some tutorials and go from there but unfortunately nothing seems to be working.

I need to display this XML Data in a table to go onto my website: http://www.tfl.gov.uk/tfl/businessandpar...k&feedId=7 I need for the data in the 'Name' tag to go in one column and the data in the 'Text' tag to go into the second.

I've tried different tutorials, some using HTML, some using XSL and some even using other methods but nothing seems to work for me.

Any help would be greatly appreciated Smile.

Thanks,
Kyle
I used these tutorials when I was new to XML data reading and outputting, maybe they'll help you:

http://www.w3schools.com/php/php_xml_simplexml.asp
http://www.dynamicdrive.com/forums/showt...L-with-PHP
Everything you need is part of most php libs.

http://www.php.net/manual/en/refs.xml.php
This is really frustrating, why can't I get this to work? Using the PHP examples above it just seems to show up as code Confused.

Is anyone able to get create a simple table for me that works using the information from the above xml file? I should be able to take it from there I just need it to work Sad.

Thanks
Anyone?
look at RSS Feed Poster plugin. It reads RSS XML and parses it. Uses the SimpleXML library
It's not MyBB I want to display it on, hence why I posted this in the Misc area.
but the plugin reads a feed and parses the XML, which is the part you want to know how to do. you dont need the MyBB part, only the parsing of the XML into an array.
I don't understand. From what I can work out the plugin displays RSS and XML Data on my board, but it's not my board I want to display it on.
Well, we're giving you examples, they're not for MyBB, the only part you need to learn is there and keep MyBB things aside.

You gotta learn and adopt it somewhere, look for tutorials on internet if you're stuck or ask for help if you're stuck, but not willing to do anything and just saying "it's not what I'm looking and it won't work" isn't going to help I believe.