Simple XML - difficult parsing
I have been using Simple-XML in PHP 5.2.5 to try and parse an RSS feed
from feedburner. Most of what I want has worked just fine... except
the attempt to extract the content from the tag
"<feedburner:origLink>".
As an example, this tag contains:
<feedburner:origLink>
http://someblog.blogspot.com/2008/03/
php.html</feedburner:origLink>
Because this tag uses a special character I used:
$item_origlink = (string) $item->{'feedburner:origLink'};
echo "<p>Original link was: ", $item_origlink , "</p>";
but I never seem to get the content of the tag.
Can anyone offer any suggestions?
Thanks in advance
.
Relevant Pages
- Re: [PHP] Couple of beginner questions
... The custom tag will expand the path to wherever the images directory was ... It's a pain in the ass overriding a CSS rule that was ... wherever I can't simply redefine the html tag. ... infact ideally an html tag should never be seen in a php script ... (php.general) - Re: [PHP] Buxa Coding Guidelines
... The point of including PHP tags inside of an "XHTML" file is that it isn't really XHTML until PHP has parsed it for its own instructions. ... I use PHP to build my HTML, ... If you're using Zend or a template engine and your scripts do not contain anything other than PHP then you *should not* include the closing tag. ... Say i turn an existing HTML file into a PHP script and add some instructions somewhere within the middle of the body. ... (php.general) - Re: How to prevent direct access..
... expressions but the above image tag appears in the default splash page ... returns an image from within an img tag, instead of calling a php ... I can easily check http request type but the img tag is doing a GET ... and have that script echo out the image and delete itself once the image has been sent to the buffer ) ... (php.general) - Re: Starting with JSP files
... Im used to PHP, so im used to the PHP opening tag and the php closing ... I was hoping that it was more like php, just create a,jsp file and put ... JSP can also output XML but I'd have to look up the ... (comp.lang.java.advocacy) - How to prevent direct access..
... I have a php file that produces an image and is only referred to from ... expressions but the above image tag appears in the default splash page ... I can easily check http request type but the img tag is doing a GET ... (php.general) |
|