<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for lalit.org</title>
	<atom:link href="http://www.lalit.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lalit.org</link>
	<description>greater than 0, less than 1</description>
	<lastBuildDate>Wed, 28 Dec 2011 07:10:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Comment on Array2XML: convert PHP Array to XML (with attributes and CDATA) by Lalit</title>
		<link>http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes/#comment-13447</link>
		<dc:creator>Lalit</dc:creator>
		<pubDate>Wed, 28 Dec 2011 07:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalit.org/?p=513#comment-13447</guid>
		<description>Hi Tim, thanks for reporting this issue.
I will try to fix it over the weekend and post and update on this post.</description>
		<content:encoded><![CDATA[<p>Hi Tim, thanks for reporting this issue.<br />
I will try to fix it over the weekend and post and update on this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Array2XML: convert PHP Array to XML (with attributes and CDATA) by Tim Lee</title>
		<link>http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes/#comment-13413</link>
		<dc:creator>Tim Lee</dc:creator>
		<pubDate>Tue, 27 Dec 2011 22:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalit.org/?p=513#comment-13413</guid>
		<description>Thank you very much for this class, it has helped me greatly. I did have one issue with the cdata processing though (it doesn&#039;t seem to process cdata when it&#039;s in a node that has the same name as the surrounding nodes), would you be able to assist me with this?

The array I give it is this:
&lt;pre lang=&quot;php&quot;&gt;
$input = array(
            &quot;show&quot; =&gt; array(
                array(
                    &quot;dog&quot; =&gt; &quot;Brian&quot;,
                    &quot;kid&quot; =&gt; array(
                        &quot;Chris&quot;,
                        &quot;Meg&quot;,
                        &quot;@cdata&quot; =&gt; &quot;&lt;em&gt;Stewie&lt;/em&gt;&quot;
                    ),
                    &quot;@attributes&quot; =&gt; array(&quot;name&quot; =&gt; &quot;Family Guy&quot;)
                ),
                array(
                    &quot;empty&quot; =&gt; array(),
                    &quot;foo&quot; =&gt; array(
                        &quot;@attributes&quot; =&gt; array(
                            &quot;empty&quot; =&gt; &quot;&quot;
                        )
                    ),
                    &quot;zero&quot; =&gt; &quot;0&quot;,
                    &quot;@attributes&quot; =&gt; array(
                        &quot;name&quot; =&gt; &quot;Edge Cases&quot;,
                        &quot;zero&quot; =&gt; &quot;0&quot;,
                        &quot;empty&quot; =&gt; &quot;&quot;
                    )
                )
            ),
        );
&lt;/pre&gt;
With a node name of &quot;tv&quot;, I get the following XML:

&lt;pre lang=&quot;xml&quot;&gt;
...
    &lt;dog&gt;Brian&lt;/dog&gt;
    &lt;kid&gt;Chris
    &lt;kid&gt;Meg
    &lt;kid&gt;&lt;em&gt;Stewie&lt;/em&gt;&lt;/kid&gt;
...
&lt;/pre&gt;

Is this format of cdata something that could be accommodated?

Thanks,
Tim Lee</description>
		<content:encoded><![CDATA[<p>Thank you very much for this class, it has helped me greatly. I did have one issue with the cdata processing though (it doesn&#8217;t seem to process cdata when it&#8217;s in a node that has the same name as the surrounding nodes), would you be able to assist me with this?</p>
<p>The array I give it is this:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #000088;">$input</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
            <span style="color: #0000ff;">&quot;show&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                    <span style="color: #0000ff;">&quot;dog&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Brian&quot;</span><span style="color: #339933;">,</span>
                    <span style="color: #0000ff;">&quot;kid&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                        <span style="color: #0000ff;">&quot;Chris&quot;</span><span style="color: #339933;">,</span>
                        <span style="color: #0000ff;">&quot;Meg&quot;</span><span style="color: #339933;">,</span>
                        <span style="color: #0000ff;">&quot;@cdata&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;&lt;em&gt;Stewie&lt;/em&gt;&quot;</span>
                    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                    <span style="color: #0000ff;">&quot;@attributes&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Family Guy&quot;</span><span style="color: #009900;">&#41;</span>
                <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                    <span style="color: #0000ff;">&quot;empty&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                    <span style="color: #0000ff;">&quot;foo&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                        <span style="color: #0000ff;">&quot;@attributes&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                            <span style="color: #0000ff;">&quot;empty&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;&quot;</span>
                        <span style="color: #009900;">&#41;</span>
                    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                    <span style="color: #0000ff;">&quot;zero&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;0&quot;</span><span style="color: #339933;">,</span>
                    <span style="color: #0000ff;">&quot;@attributes&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                        <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Edge Cases&quot;</span><span style="color: #339933;">,</span>
                        <span style="color: #0000ff;">&quot;zero&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;0&quot;</span><span style="color: #339933;">,</span>
                        <span style="color: #0000ff;">&quot;empty&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;&quot;</span>
                    <span style="color: #009900;">&#41;</span>
                <span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>With a node name of &#8220;tv&#8221;, I get the following XML:</p>

<div class="wp_syntax"><div class="code"><pre class="xml">...
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dog<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Brian<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dog<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;kid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Chris
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;kid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Meg
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;kid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #ddbb00;">&amp;amp;</span>lt;em<span style="color: #ddbb00;">&amp;amp;</span>gt;Stewie<span style="color: #ddbb00;">&amp;amp;</span>lt;/em<span style="color: #ddbb00;">&amp;amp;</span>gt;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/kid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...</pre></div></div>

<p>Is this format of cdata something that could be accommodated?</p>
<p>Thanks,<br />
Tim Lee</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Union is column name and data-type agnostic by Lalit</title>
		<link>http://www.lalit.org/lab/mysql-union-is-column-name-and-data-type-agnostic/#comment-12836</link>
		<dc:creator>Lalit</dc:creator>
		<pubDate>Thu, 22 Dec 2011 03:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalit.org/?p=653#comment-12836</guid>
		<description>MySQL provides the &lt;code&gt;AS&lt;/code&gt; syntax to change column names, which I was using the the query where I got stuck. 

So I think both these features will surprise the developer although both of them makes sense if you give it a thought but you wouldn&#039;t be expecting them.</description>
		<content:encoded><![CDATA[<p>MySQL provides the <code>AS</code> syntax to change column names, which I was using the the query where I got stuck. </p>
<p>So I think both these features will surprise the developer although both of them makes sense if you give it a thought but you wouldn&#8217;t be expecting them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Union is column name and data-type agnostic by Susam Pal</title>
		<link>http://www.lalit.org/lab/mysql-union-is-column-name-and-data-type-agnostic/#comment-12798</link>
		<dc:creator>Susam Pal</dc:creator>
		<pubDate>Wed, 21 Dec 2011 17:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalit.org/?p=653#comment-12798</guid>
		<description>Actually, ignoring column names makes more sense to me. It is possible for two different tables to use two different column names for similar data and you might want to use UNION on them. So, it becomes very necessary to ignore column names.

I would say that ignoring the data type of columns could be a bit surprising at first.</description>
		<content:encoded><![CDATA[<p>Actually, ignoring column names makes more sense to me. It is possible for two different tables to use two different column names for similar data and you might want to use UNION on them. So, it becomes very necessary to ignore column names.</p>
<p>I would say that ignoring the data type of columns could be a bit surprising at first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Union is column name and data-type agnostic by Lalit</title>
		<link>http://www.lalit.org/lab/mysql-union-is-column-name-and-data-type-agnostic/#comment-12750</link>
		<dc:creator>Lalit</dc:creator>
		<pubDate>Wed, 21 Dec 2011 10:29:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalit.org/?p=653#comment-12750</guid>
		<description>Yes, ignoring data-type and typecasting between columns makes sense and is also documented in the manual. 
But ignoring column names and matching columns just by order of columns is bit unexpected and more often then not will catch the developer off guard.</description>
		<content:encoded><![CDATA[<p>Yes, ignoring data-type and typecasting between columns makes sense and is also documented in the manual.<br />
But ignoring column names and matching columns just by order of columns is bit unexpected and more often then not will catch the developer off guard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Union is column name and data-type agnostic by Susam Pal</title>
		<link>http://www.lalit.org/lab/mysql-union-is-column-name-and-data-type-agnostic/#comment-12748</link>
		<dc:creator>Susam Pal</dc:creator>
		<pubDate>Wed, 21 Dec 2011 10:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalit.org/?p=653#comment-12748</guid>
		<description>It makes sense since we can insert a value of type SMALLINT into a column of type VARCHAR and vice versa. MySQL allows implicit conversions between various data types.

Most implementations of SQL require the corresponding columns in a UNION statement to be of compatible types only. When the types are different but compatible, type conversions are carried out.</description>
		<content:encoded><![CDATA[<p>It makes sense since we can insert a value of type SMALLINT into a column of type VARCHAR and vice versa. MySQL allows implicit conversions between various data types.</p>
<p>Most implementations of SQL require the corresponding columns in a UNION statement to be of compatible types only. When the types are different but compatible, type conversions are carried out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Array2XML: convert PHP Array to XML (with attributes and CDATA) by Lalit</title>
		<link>http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes/#comment-11491</link>
		<dc:creator>Lalit</dc:creator>
		<pubDate>Thu, 08 Dec 2011 10:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalit.org/?p=513#comment-11491</guid>
		<description>Thanks Ben for reporting. Will fix it.</description>
		<content:encoded><![CDATA[<p>Thanks Ben for reporting. Will fix it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Array2XML: convert PHP Array to XML (with attributes and CDATA) by majki</title>
		<link>http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes/#comment-11487</link>
		<dc:creator>majki</dc:creator>
		<pubDate>Thu, 08 Dec 2011 09:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalit.org/?p=513#comment-11487</guid>
		<description>You saved my ass!!!  You are my hero</description>
		<content:encoded><![CDATA[<p>You saved my ass!!!  You are my hero</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript/CSS Font Detector by Fonts by xtophe - Pearltrees</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-11209</link>
		<dc:creator>Fonts by xtophe - Pearltrees</dc:creator>
		<pubDate>Mon, 05 Dec 2011 23:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-11209</guid>
		<description>[...] JavaScript/CSS Font Detector › lalit.org I wrote a JavaScript code which can be used to guess if a particular font is present in a machine. This may be help of desktop-like web application developers when they want to provide different skins or fonts preferences to their users. This may also be help for blog skin designers which can provide different fonts for different users based on the list of fonts on their machine. [...]</description>
		<content:encoded><![CDATA[<p>[...] JavaScript/CSS Font Detector › lalit.org I wrote a JavaScript code which can be used to guess if a particular font is present in a machine. This may be help of desktop-like web application developers when they want to provide different skins or fonts preferences to their users. This may also be help for blog skin designers which can provide different fonts for different users based on the list of fonts on their machine. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Array2XML: convert PHP Array to XML (with attributes and CDATA) by m0rfeusl</title>
		<link>http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes/#comment-10863</link>
		<dc:creator>m0rfeusl</dc:creator>
		<pubDate>Thu, 01 Dec 2011 13:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalit.org/?p=513#comment-10863</guid>
		<description>Great thanks for this perfect solution! You are master ;)</description>
		<content:encoded><![CDATA[<p>Great thanks for this perfect solution! You are master <img src='http://www.lalit.org/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

