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] Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.