OSS\Model\GetLiveChannelHistory::parseFromXml PHP Method

parseFromXml() public method

public parseFromXml ( $strXml )
    public function parseFromXml($strXml)
    {
        $xml = simplexml_load_string($strXml);
        if (isset($xml->LiveRecord)) {
            foreach ($xml->LiveRecord as $record) {
                $liveRecord = new LiveChannelHistory();
                $liveRecord->parseFromXmlNode($record);
                $this->liveRecordList[] = $liveRecord;
            }
        }
    }

Usage Example

 /**
  * @return
  */
 protected function parseDataFromResponse()
 {
     $content = $this->rawResponse->body;
     $channelList = new GetLiveChannelHistory();
     $channelList->parseFromXml($content);
     return $channelList;
 }
All Usage Examples Of OSS\Model\GetLiveChannelHistory::parseFromXml