tags:

views:

21

answers:

2

Hi,

i try to to parse a xml, but i get some errors

http://fincha.com/kunden/gordon/

i get the whole xml, not only the needed

$xmlStr = file_get_contents('http://demo-q4:[email protected]:80/livexml/2.1/demo-de.portal.xml/query/apple+ipod?srt=rel&pgn='.$page.'&pge=10');
$xmlObj = simplexml_load_string($xmlStr);

print_r($xmlObj->{product-results-module}->{product-results});

i just need the products please help

+2  A: 
foreach($xmlObj->{"product-results-module"}->{"product-results"}->{"product"} as $produkt)
Fincha
+1  A: 

Don't forget the single quotes

print_r($xmlObj->{'product-results-module'}->{'product-results'});
rocketeerbkw