Data transaction between PHP and client - which way?
<p>I'll going to keep my question short. Which way sounds more professional?</p>

<p>This?</p>

<pre><code>PHP:
echo '&lt;li&gt;Link 1&lt;/li&gt;';
echo '&lt;li&gt;Link 2&lt;/li&gt;';
echo '&lt;li&gt;Link 3&lt;/li&gt;';

jQuery:
for each &lt;li&gt;, add hover effect
</code></pre>

<p>or this?</p>

<pre><code>PHP:
echo json_decode(array('Link 1', 'Link 2', Link 3'));

jQuery:
Encode json value, extract values, add hover effect
</code></pre>

<p>or XML instead of JSON?</p>

<p>I'm asking this because I'm getting bored of coding repetitive things. I want things to be bridged so a JSON/XML standart seems a bit better for me.</p>

<p>What do you think? How can I improve this logic if I want my websites to be bridged?</p>

<p>Ps. Sorry if I couldn't explain myself well. Basically, my a.com website may want to use my b.com's news, so a standart while transacting/pulling these datas would be better. I'm not sure what other alternatives do I have, though.</p>
