Bing search api . colon in xml

Posted by nicky on Stack Overflow See other posts from Stack Overflow or by nicky
Published on 2010-04-17T13:40:24Z Indexed on 2010/04/17 13:43 UTC
Read the original article Hit count: 376

Filed under:
|

i am trying to parse bing search xml but whenever i try to access xml element there is colon in every elemet

which gives error Parse error: syntax error, unexpected ':' in /

here is my php code

   foreach($searchresponse->web:Web->web:Results as $result) 
{ 
      printf(" \n%s", $result->web:Description); 
}     

here is bing xml response

<SearchResponse Version="2.2">
-
<Query>
 <SearchTerms>ipl</SearchTerms>
</Query>
-
<web:Web>
<web:Total>2430000</web:Total>
<web:Offset>0</web:Offset>
-
<web:Results> 
-
<web:WebResult>
<web:Title>Indian Premier League | IPLT20</web:Title>  

what is the meaning of colon in xml tags.

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml