I want to get data out of an XML file with PHP, but how to access the variables?

  • Thread starter Thread starter waldgeiger
  • Start date Start date
W

waldgeiger

Guest
I need some help as i dont know how to access variabled in a XML file returned by the eBay API.
Can someone please explain to me how I can access the data with PHP


- <GetSellerTransactionsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2009-11-23T15:27:31.908Z</Timestamp>
<Ack>Success</Ack>
<Version>637</Version>
<Build>E637_INTL_BUNDLED_10223050_R1</Build>
+ <PaginationResult>
<TotalNumberOfPages>1</TotalNumberOfPages>
<TotalNumberOfEntries>1</TotalNumberOfEntries>
</PaginationResult>
<HasMoreTransactions>false</HasMoreTransactions>
<TransactionsPerPage>100</TransactionsPerPage>
<PageNumber>1</PageNumber>
<ReturnedTransactionCountActual>1</ReturnedTransactionCountActual>
+ <Seller>
<AboutMePage>false</AboutMePage>
<FeedbackScore>500</FeedbackScore>
<PositiveFeedbackPercent>0.0</PositiveFeedbackPercent>
<FeedbackPrivate>false</FeedbackPrivate>
<FeedbackRatingStar>Purple</FeedbackRatingStar>
<IDVerified>false</IDVerified>
<eBayGoodStanding>true</eBayGoodStanding>
<NewUser>false</NewUser>
<RegistrationDate>1995-01-01T00:00:00.000Z</RegistrationDate>
<Site>US</Site>
<Status>Confirmed</Status>
<UserID>testuser</UserID>
<UserIDChanged>false</UserIDChanged>
<UserIDLastChanged>2008-12-11T01:10:36.000Z</UserIDLastChanged>
<VATStatus>NoVATTax</VATStatus>
- <SellerInfo>
<AllowPaymentEdit>true</AllowPaymentEdit>
<CheckoutEnabled>true</CheckoutEnabled>
<CIPBankAccountStored>false</CIPBankAccountStored>
<GoodStanding>true</GoodStanding>
<LiveAuctionAuthorized>false</LiveAuctionAuthorized>
<MerchandizingPref>OptIn</MerchandizingPref>
<QualifiesForB2BVAT>false</QualifiesForB2BVAT>
<SellerLevel>None</SellerLevel>
<StoreOwner>false</StoreOwner>
<ExpressEligible>false</ExpressEligible>
<ExpressWallet>false</ExpressWallet>
<SafePaymentExempt>true</SafePaymentExempt>
</SellerInfo>
</Seller>
- <TransactionArray>
- <Transaction>
<AmountPaid currencyID="EUR">100.0</AmountPaid>
<AdjustmentAmount currencyID="EUR">0.0</AdjustmentAmount>
<ConvertedAdjustmentAmount currencyID="EUR">0.0</ConvertedAdjustmentAmount>
- <Buyer>
<AboutMePage>false</AboutMePage>
<EIASToken>nY+sHZrBmdj6wVnY+sEZ2PrA2dj6wFk4CoCJiCogWdj6x9nY+seQ==</EIASToken>
<FeedbackScore>500</FeedbackScore>
<PositiveFeedbackPercent>0.0</PositiveFeedbackPercent>
<FeedbackPrivate>false</FeedbackPrivate>
<FeedbackRatingStar>Purple</FeedbackRatingStar>
<IDVerified>true</IDVerified>
 
Back
Top