<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FireLike &#187; XML</title>
	<atom:link href="http://www.firelike.com/index.php/category/software-development/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.firelike.com</link>
	<description>In search of..</description>
	<lastBuildDate>Sun, 15 Jan 2012 22:52:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Insert processing istruction to Zend View Helper Navigation Sitemap dom object</title>
		<link>http://www.firelike.com/index.php/2012/01/15/insert-processing-istruction-to-zend-view-helper-navigation-sitemap-dom-object/</link>
		<comments>http://www.firelike.com/index.php/2012/01/15/insert-processing-istruction-to-zend-view-helper-navigation-sitemap-dom-object/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 21:58:49 +0000</pubDate>
		<dc:creator>firelike</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.firelike.com/?p=109</guid>
		<description><![CDATA[What if you want to associate a xslt stylesheet to the sitemap generated by Zend_View_Helper_Navigation_Sitemap. I did it by adding a xml-stylesheet processing instruction to the view helper dom object. Here is the code: class SitemapController extends Zend_Controller_Action { public function indexAction () { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender("true"); $pages = array(); // generate the pages array somehow [...]]]></description>
			<content:encoded><![CDATA[<p>What if you want to associate a xslt stylesheet to the sitemap generated by Zend_View_Helper_Navigation_Sitemap. I did it by adding a xml-stylesheet processing instruction to the view helper dom object. Here is the code:<br />
<code><br />
class SitemapController extends Zend_Controller_Action<br />
{<br />
    public function indexAction ()<br />
    {<br />
        $this->_helper->layout->disableLayout();<br />
        $this->_helper->viewRenderer->setNoRender("true");</p>
<p>        $pages = array(); </p>
<p>        // generate the pages array somehow<br />
        $someservice = new My_Serivce_PageGenerator();<br />
        $pages = $someservice->fetchAllMyWebsitePages();</p>
<p>        // generate sitemap xml<br />
        $xml = $this->_generateSitemapXml($pages);</p>
<p>        $response = $this->getResponse();<br />
        $response->setHeader('Cache-Control', 'public', true);<br />
        $response->setHeader('Content-Type', 'text/xml', true);<br />
        $response->appendBody($xml);</p>
<p>    }</p>
<p>    private function _generateSitemapXml ($pages)<br />
    {</p>
<p>        $sitemap = new Zend_View_Helper_Navigation_Sitemap();</p>
<p>        $sitemap->setView($this->view);<br />
        $sitemap->setUseSitemapValidators(false);<br />
        $sitemap->setMinDepth(0);<br />
        $sitemap->setMaxDepth(0);</p>
<p>        $container = new Zend_Navigation();<br />
        $container->addPages($pages);</p>
<p>        $sitemap->setContainer($container);</p>
<p><strong><br />
        // get the dom object<br />
        $dom = $sitemap->getDomSitemap();</p>
<p>        // define path to xslt stylesheet<br />
        $xslt_file_path = '/sitemap_style.xsl';</p>
<p>        // create processing instruction<br />
        $xslt = $dom->createProcessingInstruction('xml-stylesheet', 'type="text/xsl" href="' . $xslt_file_path . '"');</p>
<p>        // add it to the dom<br />
        $urlset = $dom->getElementsByTagName('urlset');<br />
        $dom->insertBefore($xslt, $urlset->item(0));</p>
<p>        // instead of using the render method we use this:<br />
        $xml = $sitemap->getUseXmlDeclaration() ? $dom->saveXML() : $dom->saveXML($dom->documentElement);</p>
<p>        return rtrim($xml, PHP_EOL);</p>
<p>    </strong><br />
    }</p>
<p>}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.firelike.com/index.php/2012/01/15/insert-processing-istruction-to-zend-view-helper-navigation-sitemap-dom-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress, OPML and Firefox</title>
		<link>http://www.firelike.com/index.php/2006/12/19/wordpress-opml-and-firefox/</link>
		<comments>http://www.firelike.com/index.php/2006/12/19/wordpress-opml-and-firefox/#comments</comments>
		<pubDate>Tue, 19 Dec 2006 20:20:40 +0000</pubDate>
		<dc:creator>firelike</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.firelike.com/?p=12</guid>
		<description><![CDATA[Yesterday, wanted to import all my bookmarks to this blog. Under Links management there is an option to import your links but it asks for an OPML file. After short googling for OPML file type, I was able to find this web site, where one can download and install a Mozilla Firefox plugin that will [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, wanted to import all my bookmarks to this blog. Under Links management there is an option to import your links but it asks for an OPML file.</p>
<p><span id="more-12"></span> After short googling for  OPML file type, I was able to find this <a target="_blank" href="http://efinke.com/opml-support/">web site</a>, where one can download and install a Mozilla Firefox plugin that will enable export of all your bookmarks into a file of OPML type.</p>
<p>The next step is to upload the file using the local file option under links management/import links. My file was about 70KB. When I tried the upload using the upload form, I have received an error message that the file size exceeds the MAX_FILE_SIZE of the upload form.</p>
<p>There are at least 2 ways to handle this:</p>
<ul>
<li>One is to open the OPML file, which is actually an XML file, and break it into a smaller chunks.</li>
<li>The other option is (that is what I did) to change the MAX_FILE_SIZE of the upload form.</li>
</ul>
<p>Simply open  /wp-admin/link-import.php  in  your  WordPress  directory and  find  the following  line of  code:</p>
<p><code>input type="hidden" value="30000" name="MAX_FILE_SIZE" </code></p>
<p><code /></p>
<p>Change the value to allow for the upload of the file size that you have. I changed it to 100000. Save file, and refresh your browser.Try to upload the OPML file again. Mine was uploaded just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firelike.com/index.php/2006/12/19/wordpress-opml-and-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML and XSL-FO to PDF</title>
		<link>http://www.firelike.com/index.php/2006/12/18/xml-and-xsl-fo-to-pdf/</link>
		<comments>http://www.firelike.com/index.php/2006/12/18/xml-and-xsl-fo-to-pdf/#comments</comments>
		<pubDate>Mon, 18 Dec 2006 08:13:32 +0000</pubDate>
		<dc:creator>firelike</dc:creator>
				<category><![CDATA[PDF Generation]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSL-FO]]></category>

		<guid isPermaLink="false">http://www.firelike.com/?p=10</guid>
		<description><![CDATA[Antenna House web site has wealth of information about this cool technology]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.antennahouse.com/" target="_blank">Antenna House  web site</a> has  wealth of information about this cool technology</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firelike.com/index.php/2006/12/18/xml-and-xsl-fo-to-pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SavaNetâ„¢ XBRLÂ® Reader</title>
		<link>http://www.firelike.com/index.php/2006/12/18/savanet%e2%84%a2-xbrl%c2%ae-reader/</link>
		<comments>http://www.firelike.com/index.php/2006/12/18/savanet%e2%84%a2-xbrl%c2%ae-reader/#comments</comments>
		<pubDate>Mon, 18 Dec 2006 08:08:08 +0000</pubDate>
		<dc:creator>firelike</dc:creator>
				<category><![CDATA[Accounting]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.firelike.com/?p=9</guid>
		<description><![CDATA[SavaNetâ„¢ XBRLÂ® Reader is a free software application that allows everyone from financial professionals to independent investors to easily access, view, analyze, compare, print, and export financial data.]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.savanet.net/AboutReader.aspx">SavaNetâ„¢ XBRLÂ® Reader </a> is a free software  			application that allows everyone from financial  			professionals to independent investors to easily  			access, view, analyze, compare, print, and export  			financial data.<a target="_blank" href="http://www.savanet.net/AboutReader.aspx" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.firelike.com/index.php/2006/12/18/savanet%e2%84%a2-xbrl%c2%ae-reader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

