After working with several people on the irc channel. We found that
there is a bug with versions of libxml2 before version 2.7.3. Also in
my case there seems to be a problem with the php 5.2.6 that is bundled
for Fedora 10.
I still haven't gotten everything to work correctly. I may look at a
different OS though. Hope this info helps someone.
On Mar 11, 6:26 pm, Antoni wrote:
> Hello,
>
> I am using the provided xml class to parse my rss feed from my blog.
> But when I parse the xml and spit out the array all of the html
> entities have been removed.
>
> here is what a link looks like: a href="http://picasaweb.google.com/lh/
> photo/05ihu8FUhDHgVl9LmOx3kw?
> authkey=Gv1sRgCLr4g4iGjZCvgwEfeat=embedwebsite"
>
> It is missing the < (<) and > (>) signs.
>
> and here is the php code:
> function index() {
> App::import('Xml');
>
> // antoni-s blog
> $aBlog = "http://antoni-s.blogspot.com/atom.xml";;
>
> // now parse it
> $antoni_xml =& new XML($aBlog);
> $antoni_xml = Set::reverse($antoni_xml); // this is what i
> call
> magic
>
> // see the returned array
> //debug($antoni_xml);
>
> //set the array for antoni-s to news view
> $this->set('news',$antoni_xml);
>
> // antoni-tech blog
> $tBlog = "http://antoni-tech.blogspot.com/atom.xml";;
>
> // now parse it
> $tech_xml =& new XML($tBlog);
> $tech_xml = Set::reverse($tech_xml); // this is what i call
> magic
>
> // see the returned array
> //debug($tech_xml);
>
> //set the array for antoni-s to news view
> $this->set('tech',$tech_xml);
>
> }//end function
>
> If someone could help I would appreciate it. Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---