mithu_sree Posted January 11, 2007 Share Posted January 11, 2007 I'm trying to parse RSS files. I just want to know is there a function like javascript innerHTML() in PHP[code]$titles = $dom->getElementsByTagName('title');foreach ($titles as $title) { echo $title->.......'<br>'; // I want to get the contents inside <title> tags}[/code] Link to comment https://forums.phpfreaks.com/topic/33703-xml-dom/ Share on other sites More sharing options...
ultrus Posted January 11, 2007 Share Posted January 11, 2007 Hello,I'm not totally sure. I have struggled with XML quite a bit in PHP. While I came up with some scripts at one point to work with XML on an awkward basis, I found this script to be very useful. It saves me much time:http://keithdevens.com/software/phpxml Link to comment https://forums.phpfreaks.com/topic/33703-xml-dom/#findComment-158049 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.