<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-3653745335475875863.post5851726922799001713..comments</id><updated>2009-11-10T23:49:35.354+01:00</updated><category term='Lighttpd'/><category term='XSLT'/><category term='Performance'/><category term='CSS'/><category term='PDF'/><category term='Photos'/><category term='Gadgets'/><category term='XML'/><category term='Bicycle'/><category term='Templates'/><category term='Webserver'/><category term='PHP'/><category term='Browsers'/><category term='DOM'/><category term='PHPUG'/><category term='Firebug'/><category term='X10 mini pro'/><category term='XPath'/><category term='Conference'/><category term='Eclipse'/><category term='HTML'/><category term='papaya CMS'/><category term='JavaScript'/><category term='SVN'/><category term='Strida'/><category term='Blog'/><category term='Syntax Sugar'/><category term='FluentDOM'/><title type='text'>Comments on A Basketful Of Papayas: FluentDOM Loaders</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.a-basketful-of-papayas.net/feeds/5851726922799001713/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default'/><link rel='alternate' type='text/html' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html'/><author><name>Thomas Weinert</name><uri>https://profiles.google.com/109131159981705873928</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-pELHFzA8IlA/AAAAAAAAAAI/AAAAAAAACm4/D4NmBELu_Ig/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3653745335475875863.post-7807119360188697102</id><published>2009-11-10T23:49:35.354+01:00</published><updated>2009-11-10T23:49:35.354+01:00</updated><title type='text'>The XML loader uses file_exists(), that why it won...</title><content type='html'>The XML loader uses file_exists(), that why it won&amp;#39;t work with urls. Maybe we should add some check for the scheme.&lt;br /&gt;&lt;br /&gt;But here are shorter ways:&lt;br /&gt;&lt;br /&gt;FluentDOM is not only a class but a function, too.&lt;br /&gt;&lt;br /&gt;$dom = new DOMDocument();&lt;br /&gt;$dom-&amp;gt;load($url);&lt;br /&gt;$fd = FluentDOM($dom);&lt;br /&gt;&lt;br /&gt;or using the class&lt;br /&gt;&lt;br /&gt;$dom = new DOMDocument();&lt;br /&gt;$dom-&amp;gt;load($url);&lt;br /&gt;$fd = new FluentDOM();&lt;br /&gt;$fd-&amp;gt;load($dom);&lt;br /&gt;&lt;br /&gt;or using the internal DOMDocument&lt;br /&gt;&lt;br /&gt;$fd = new FluentDOM();&lt;br /&gt;$fd-&amp;gt;document-&amp;gt;load($url);&lt;br /&gt;&lt;br /&gt;You will find a little newsreader in ~/examples/atom/. It shows namespace handling, too.&lt;br /&gt;&lt;br /&gt;*btw* All this is for the current svn/nightly version.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/7807119360188697102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/7807119360188697102'/><link rel='alternate' type='text/html' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html?showComment=1257893375354#c7807119360188697102' title=''/><author><name>Tom</name><uri>http://www.blogger.com/profile/12009821760062911474</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://thomas.weinert.info/avatars/x-application-papaya5-48.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html' ref='tag:blogger.com,1999:blog-3653745335475875863.post-5851726922799001713' source='http://www.blogger.com/feeds/3653745335475875863/posts/default/5851726922799001713' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-84383994'/></entry><entry><id>tag:blogger.com,1999:blog-3653745335475875863.post-1413198555286201636</id><published>2009-11-09T23:10:40.792+01:00</published><updated>2009-11-09T23:10:40.792+01:00</updated><title type='text'>FluentDOM is an amazing idea, but the documentatio...</title><content type='html'>FluentDOM is an amazing idea, but the documentation is very difficult to digest and there aren&amp;#39;t any real helpful examples. i&amp;#39;m trying to learn it so i can help remedy that!&lt;br /&gt;&lt;br /&gt;that said, i&amp;#39;m trying to get setLoaders to work... here&amp;#39;s the problem: i can&amp;#39;t seem to get an external RSS feed to load using:&lt;br /&gt;&lt;br /&gt;$xml = new FluentDOM($url,$type);&lt;br /&gt;&lt;br /&gt;instead i have to do this:&lt;br /&gt;$xml = new DOMDocument();&lt;br /&gt;$xml-&amp;gt;load($url);&lt;br /&gt;$xml = $xml-&amp;gt;saveXML($xml);&lt;br /&gt;$xml = new FluentDOM($xml);&lt;br /&gt;&lt;br /&gt;i&amp;#39;m trying to create a loader to avoid this extra DOMDocument crap. any ideas? ideally it would be as simple as including FluentDOM.php and using it normally.&lt;br /&gt;&lt;br /&gt;please keep up the good work. hopefully more people will start using this and there will be better support! :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/1413198555286201636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/1413198555286201636'/><link rel='alternate' type='text/html' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html?showComment=1257804640792#c1413198555286201636' title=''/><author><name>jklmnop</name><uri>http://www.blogger.com/profile/07297327999464028503</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_93evKTJthMw/Sco_dpK-bjI/AAAAAAAABU8/TQR5sKXxA-g/s1600-R/bluegreens.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html' ref='tag:blogger.com,1999:blog-3653745335475875863.post-5851726922799001713' source='http://www.blogger.com/feeds/3653745335475875863/posts/default/5851726922799001713' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-469483903'/></entry><entry><id>tag:blogger.com,1999:blog-3653745335475875863.post-2893804196782955843</id><published>2009-09-02T15:13:33.148+02:00</published><updated>2009-09-02T15:13:33.148+02:00</updated><title type='text'>You could select all parent nodes that could have ...</title><content type='html'>You could select all parent nodes that could have links but have not and append to them.&lt;br /&gt;&lt;br /&gt;Untested:&lt;br /&gt;&lt;br /&gt;$fd-&amp;gt;find(&amp;#39;//_:item[count(_:link) = 0]&amp;#39;)-&amp;gt;append(&amp;#39;&amp;lt; link /&amp;gt;&amp;#39;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/2893804196782955843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/2893804196782955843'/><link rel='alternate' type='text/html' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html?showComment=1251897213148#c2893804196782955843' title=''/><author><name>Tom</name><uri>http://www.blogger.com/profile/12009821760062911474</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://thomas.weinert.info/avatars/x-application-papaya5-48.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html' ref='tag:blogger.com,1999:blog-3653745335475875863.post-5851726922799001713' source='http://www.blogger.com/feeds/3653745335475875863/posts/default/5851726922799001713' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-84383994'/></entry><entry><id>tag:blogger.com,1999:blog-3653745335475875863.post-7520046953326971595</id><published>2009-09-02T15:03:45.980+02:00</published><updated>2009-09-02T15:03:45.980+02:00</updated><title type='text'>Fantastic, thanks! What if there is no link from b...</title><content type='html'>Fantastic, thanks! What if there is no link from before, any clever ideas of how to inject after last link (if it exists) or after last atom:* otherwise?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/7520046953326971595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/7520046953326971595'/><link rel='alternate' type='text/html' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html?showComment=1251896625980#c7520046953326971595' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html' ref='tag:blogger.com,1999:blog-3653745335475875863.post-5851726922799001713' source='http://www.blogger.com/feeds/3653745335475875863/posts/default/5851726922799001713' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2053221315'/></entry><entry><id>tag:blogger.com,1999:blog-3653745335475875863.post-2070142494073123553</id><published>2009-09-02T14:50:38.530+02:00</published><updated>2009-09-02T14:50:38.530+02:00</updated><title type='text'>You&amp;#39;re going one up using parent() - so it app...</title><content type='html'>You&amp;#39;re going one up using parent() - so it appends to the content nodes of the parent node. Try using the after() method on the selected element.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Tom</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/2070142494073123553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/2070142494073123553'/><link rel='alternate' type='text/html' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html?showComment=1251895838530#c2070142494073123553' title=''/><author><name>Tom</name><uri>http://www.blogger.com/profile/12009821760062911474</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://thomas.weinert.info/avatars/x-application-papaya5-48.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html' ref='tag:blogger.com,1999:blog-3653745335475875863.post-5851726922799001713' source='http://www.blogger.com/feeds/3653745335475875863/posts/default/5851726922799001713' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-84383994'/></entry><entry><id>tag:blogger.com,1999:blog-3653745335475875863.post-8785185511340194770</id><published>2009-09-02T14:44:41.954+02:00</published><updated>2009-09-02T14:44:41.954+02:00</updated><title type='text'>FluentDOM === Great stuff.

I struggle with inject...</title><content type='html'>FluentDOM === Great stuff.&lt;br /&gt;&lt;br /&gt;I struggle with injecting an atom:link after the last link. I tried&lt;br /&gt;&lt;br /&gt;$fd-&amp;gt;find(&amp;quot;//_:link[position() = last()]&amp;quot;)-&amp;gt;parent()-&amp;gt;append(&amp;#39;&amp;lt; link /&amp;gt;&amp;#39;);&lt;br /&gt;&lt;br /&gt;But the link ends up at the end. Any easy solution?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/8785185511340194770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3653745335475875863/5851726922799001713/comments/default/8785185511340194770'/><link rel='alternate' type='text/html' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html?showComment=1251895481954#c8785185511340194770' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.a-basketful-of-papayas.net/2009/07/fluentdom-loaders.html' ref='tag:blogger.com,1999:blog-3653745335475875863.post-5851726922799001713' source='http://www.blogger.com/feeds/3653745335475875863/posts/default/5851726922799001713' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2053221315'/></entry></feed>
