[jQuery] OT: PHP to read jQuery API XML
<span style="font-family: trebuchet ms;">I am working on an API Browser. </span><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">Rather than transform the whole XML structure on the client-side, I am using PHP to get and return only the parts I need.
</span><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">I am hoping this is a speed improvement.</span><br style="font-family: trebuchet ms;"><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">
What I have so far is:</span><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">
<a href="http://www.commadot.com/jquery/experiments/api/xmlReader.txt">http://www.commadot.com/jquery/experiments/api/xmlReader.txt</a> (code)</span><br style="font-family: trebuchet ms;">
<span style="font-family: trebuchet ms;"><a href="http://www.commadot.com/jquery/experiments/api/xmlReader.php">http://www.commadot.com/jquery/experiments/api/xmlReader.php</a> (results)</span><br style="font-family: trebuchet ms;">
<br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">I will have to make more nested foreach loops to get grandchildren and great-grandchildren.</span><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">
This seems like a horrible pattern.</span><br style="font-family: trebuchet ms;"><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">Is there a better way on the server-side to do this? Any code samples or demos would be awesome. :)
</span><br style="font-family: trebuchet ms;"><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">jQuery is so easy. PHP is not. (for me)</span><br style="font-family: trebuchet ms;"><br style="font-family: trebuchet ms;">
<span style="font-family: trebuchet ms;">Glen</span>