If it&#39;s useful, I&#39;ve also written an XRDS-Simple parser in PHP that I use in my Portable Contacts test harness to do OAuth Discovery and Portable Contacts Discovery: <a href="http://code.google.com/p/xrds-simple/source/browse/code/php/XrdsSimpleParser.php">http://code.google.com/p/xrds-simple/source/browse/code/php/XrdsSimpleParser.php</a>&nbsp;-- it&#39;s just focused on fetching/parsing/navigating XRDS-Simple docs, but as such it does a bit more to help you than just unmarshalling the XML. Thanks, js<br>
<br>
<div class="gmail_quote">On Sat, Dec 27, 2008 at 7:19 AM, André Luís <span dir="ltr">&lt;<a href="http://andr3.pt">andr3.pt</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">On Sat, Dec 27, 2008 at 12:27 AM, &nbsp;&lt;<a href="mailto:chris.messina@gmail.com">chris.messina@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Figured folks on these lists would be able to provide some feedback on<br>
&gt; Will&#39;s initial go at an XRDS-Simple library in PHP:<br><br></div>Thanks for sharing this, Chris.<br>
<div class="Ih2E3d"><br>&gt;<br>&gt; ---------- Forwarded message ----------<br>&gt; From: Will Norris &lt;<a href="mailto:will@willnorris.com">will@willnorris.com</a>&gt;<br>&gt; Date: Fri, 26 Dec 2008 13:57:23 -0800<br>
&gt; Subject: [diso-project] PHP XRDS-Simple Library<br>&gt; To: <a href="mailto:diso-project@googlegroups.com">diso-project@googlegroups.com</a><br>&gt;<br><br><br><br></div>
<div class="Ih2E3d">&gt; Right now I&#39;m using the PHP DOM library for the<br>&gt; marshalling, which is only available in PHP5. &nbsp;If we want to support<br>&gt; PHP4, we&#39;ll need to write marshallers that use the DOM XML library.<br>
&gt; If the code is cleanly abstracted, this won&#39;t actually be very<br>&gt; difficult.<br><br></div>+1 for going at it from a php5 point of view. php4 is on its way out<br>and even though some legacy sites still use it, it shouldn&#39;t be too<br>
hard for them to hack a solution for your xml parsing... imho, it<br>shouldn&#39;t be in the scope of this library to provide php4 support. at<br>most, create a driver that uses php5 but can later be rewritten for<br>php4.<br>

<div class="Ih2E3d"><br>&gt;<br>&gt; Right now I&#39;d love to hear any feedback on this. &nbsp;There are a couple<br>&gt; of phpUnit tests to see how the pieces fit together. &nbsp;Does this seem<br>&gt; like a logical approach to this problem? &nbsp;Am I overlooking anything<br>
&gt; really big?<br><br></div>Seems like a good approach to me... at least, as good as any.<br><br>Looking at the code (in a bit of a rush), it seems like you&#39;re not<br>doing any error handling. Is that on purpose? Should we try {} catch<br>
stuff ourselves when using the lib (xml malformed and such)?<br><br>Thanks for doing this Will. It will definitely make it easier for<br>anyone who wants to mess with xrds.<br><br>Cheers!<br><font color="#888888"><br>--<br>
André Luís<br><a href="http://andr3.net/" target="_blank">http://andr3.net/</a><br>_______________________________________________<br>general mailing list<br><a href="mailto:general@openid.net">general@openid.net</a><br><a href="http://openid.net/mailman/listinfo/general" target="_blank">http://openid.net/mailman/listinfo/general</a><br>
</font></blockquote></div><br>