protected function parseXML($xml){
        if (!$xml){
            return false;
        }
        $xmlP = $xml->ListParticipations;
        $xmlM = $xml->ListMarketplaces;
        
        foreach($xmlP->children() as $x){
            $this->participationList[$this->indexP]['MarketplaceId'] = (string)$x->MarketplaceId;
            $this->participationList[$this->indexP]['SellerId'] = (string)$x->SellerId;
            $this->participationList[$this->indexP]['Suspended'] = (string)$x->HasSellerSuspendedListings;
            $this->indexP++;
        }
        
        
        foreach($xmlM->children() as $x){
            $this->marketplaceList[$this->indexM]['MarketplaceId'] = (string)$x->MarketplaceId;
            $this->marketplaceList[$this->indexM]['Name'] = (string)$x->Name;
            $this->marketplaceList[$this->indexM]['Country'] = (string)$x->DefaultCountryCode;
            $this->marketplaceList[$this->indexM]['Currency'] = (string)$x->DefaultCurrencyCode;
            $this->marketplaceList[$this->indexM]['Language'] = (string)$x->DefaultLanguageCode;
            $this->marketplaceList[$this->indexM]['Domain'] = (string)$x->DomainName;
            $this->indexM++;
        }
    }
protected function parseXML($xml){
        if (!$xml){
            return false;
        }
        $xmlP = $xml->ListParticipations;
        $xmlM = $xml->ListMarketplaces;
        
        foreach($xmlP->children() as $x){
            $this->participationList[$this->indexP]['MarketplaceId'] = (string)$x->MarketplaceId;
            $this->participationList[$this->indexP]['SellerId'] = (string)$x->SellerId;
            $this->participationList[$this->indexP]['Suspended'] = (string)$x->HasSellerSuspendedListings;
            $this->indexP++;
        }
        
        
        foreach($xmlM->children() as $x){
            $this->marketplaceList[$this->indexM]['MarketplaceId'] = (string)$x->MarketplaceId;
            $this->marketplaceList[$this->indexM]['Name'] = (string)$x->Name;
            $this->marketplaceList[$this->indexM]['Country'] = (string)$x->DefaultCountryCode;
            $this->marketplaceList[$this->indexM]['Currency'] = (string)$x->DefaultCurrencyCode;
            $this->marketplaceList[$this->indexM]['Language'] = (string)$x->DefaultLanguageCode;
            $this->marketplaceList[$this->indexM]['Domain'] = (string)$x->DomainName;
            $this->indexM++;
        }
    }
protected function parseXML ( $ xml ) { if ( ! $ xml ) { return false ; } $ xmlP = $ xml -> ListParticipations ; $ xmlM = $ xml -> ListMarketplaces ; foreach ( $ xmlP -> children ( ) as $ x ) { $ this -> participationList [ $ this -> indexP ] [ 'MarketplaceId' ] = ( string ) $ x -> MarketplaceId ; $ this -> participationList [ $ this -> indexP ] [ 'SellerId' ] = ( string ) $ x -> SellerId ; $ this -> participationList [ $ this -> indexP ] [ 'Suspended' ] = ( string ) $ x -> HasSellerSuspendedListings ; $ this -> indexP ++ ; } foreach ( $ xmlM -> children ( ) as $ x ) { $ this -> marketplaceList [ $ this -> indexM ] [ 'MarketplaceId' ] = ( string ) $ x -> MarketplaceId ; $ this -> marketplaceList [ $ this -> indexM ] [ 'Name' ] = ( string ) $ x -> Name ; $ this -> marketplaceList [ $ this -> indexM ] [ 'Country' ] = ( string ) $ x -> DefaultCountryCode ; $ this -> marketplaceList [ $ this -> indexM ] [ 'Currency' ] = ( string ) $ x -> DefaultCurrencyCode ; $ this -> marketplaceList [ $ this -> indexM ] [ 'Language' ] = ( string ) $ x -> DefaultLanguageCode ; $ this -> marketplaceList [ $ this -> indexM ] [ 'Domain' ] = ( string ) $ x -> DomainName ; $ this -> indexM ++ ; } }
Parses XML response into two arrays.

This is what reads the response XML and converts it into two arrays.
@param SimpleXMLElement $xml <p>The XML response from Amazon.</p>
@return boolean <b>FALSE</b> if no XML data is found
Parses XML response into two arrays .