<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1037069" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1037069</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/assign-variable-transactionarraytransactiontransactionid-where-user-id#comment-1212947</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;oskare100 wrote:&lt;/strong&gt; I know how to just select a buyer.userid but the XML returns an array with several buyer.userids and I need to find the transactionID where the userid I have = buyer.userid.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Think I understand what you need now. Try this: -&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$transactionNodes &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$singlenode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$buyerobject &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$singlenode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;get_elements_by_tagname&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Buyer\&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$userid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$buyerobject&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;-&amp;gt;get_elements_by_tagname(\&quot;UserID\&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$userid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;-&amp;gt;getcontent() == &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ourbuyerid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; // Am assuming we know the buyer id we&#039;re looking for&lt;br /&gt;&amp;nbsp;&amp;nbsp; // (and is stored in &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ourbuyerid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$transactionid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$buyerobject&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;get_elements_by_tagname&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;(\&quot;TransactionID\&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;echo \&quot;&amp;lt;p&amp;gt;TransactionID = $\&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$transactionid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;-&amp;gt;getcontent() . \&quot;$&amp;lt;/p&amp;gt;\&quot;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I have no idea whether this will work or not (probably the latter), but should point you in the right direction. From the results of [incode]print_r($transactionNodes);[/incode] in your first post am assuming $transactionNodes is an array of &#039;domelement&#039; objects, and that&#039;s the array you&#039;re trying to get the Buyer information from.&lt;/p&gt;
&lt;p&gt;Hope this helps, let us know the results either way. Sorry I can&#039;t test this at all, it would be too difficult to replicate your environment! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 03 Jan 2007 08:49:57 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1212947 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/assign-variable-transactionarraytransactiontransactionid-where-user-id#comment-1212912</link>
    <description> &lt;p&gt;Hello,&lt;br /&gt;
I know how to just select a buyer.userid but the XML returns an array with several buyer.userids and I need to find the transactionID where the userid I have = buyer.userid. In other words, I need to get the transactionid from an auction with several buyers (in other words several transactionid&#039;s because it is one transactionid per buyer) where the buyerid = the buyerid I have.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;br /&gt;
/Oskar&lt;/p&gt;
 </description>
     <pubDate>Tue, 02 Jan 2007 12:25:19 +0000</pubDate>
 <dc:creator>oskare100</dc:creator>
 <guid isPermaLink="false">comment 1212912 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/assign-variable-transactionarraytransactiontransactionid-where-user-id#comment-1212902</link>
    <description> &lt;p&gt;Well, am no expert on the PHP XML functions but will try to help if I can. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Firstly: -&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;oskare100 wrote:&lt;/strong&gt; print_r($transactionNodes);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; Doesn&#039;t seem to be showing the whole picture. Notice that the array elements are all [incode]domelement Object[/incode] and what is returned by the [incode]$eBayTime[0]-&amp;gt;get_content()[/incode] function is loads more than print_r shows.&lt;/p&gt;
&lt;p&gt;Secondly: -&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;oskare100 wrote:&lt;/strong&gt; The answer is 2.950.00.0falsenY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wFk4CkAZKDqQydj6x9nY+seQ==oskare200@hotmail.com0falseNonetruetruefalse2006-01-01T19:59:59.000ZUSConfirmedtheventbuytrue2006-12-28T22:34:43.000ZNoVATTaxTest UseraddresscitystateNone(180) 011-1111 ext.: 1951253101053eBayfalsetrue0.0NotOfferedfalsefalse0.0falseUSPSPriority0.00.01false23Flatfalsefalse2.952.952006-12-31T11:12:49.000ZNone1NoPaymentFailureCheckoutIncomplete2006-12-31T11:12:49.000ZNoneIncompletefalse50062629452.95false0.0USPSPriority0.0eBay GMT&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Is this what was shown in your browser? My guess would be that if you look at the code of the page generated, you&#039;ll see that&#039;s XML. So hopefully you&#039;ll be able to get the userid with another [incode]get_elements_by_tagname()[/incode]&lt;/p&gt;
&lt;p&gt;So what we need to know next is what that XML is... Hope this makes sense, and that I&#039;m grasping what you&#039;re trying to do. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 02 Jan 2007 09:53:38 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1212902 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/assign-variable-transactionarraytransactiontransactionid-where-user-id#comment-1212883</link>
    <description> &lt;p&gt;Hello again,&lt;br /&gt;
Basicly, in other words, what I want to do is to find the &quot;TransactionArray.Transaction.TransactionID&quot; for the buyer &quot;TransactionArray.Transaction.Buyer.UserID&quot;. It is just an XML response, is there really no one who can help me with this? I&#039;m not even sure you need to know anything about XML to be able to help me, just have better knowledge of PHP than I. I really need help because the script I&#039;m writing on wount work without this part and I can&#039;t figure out how to do it myself.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;br /&gt;
/Oskar&lt;/p&gt;
 </description>
     <pubDate>Mon, 01 Jan 2007 21:17:19 +0000</pubDate>
 <dc:creator>oskare100</dc:creator>
 <guid isPermaLink="false">comment 1212883 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
