You are here: Re: PHP parser for CDATA « All PHP « IT news, forums, messages
Re: PHP parser for CDATA

Posted by Andrew @ Rockface on 11/23/05 13:47

SimpleT wrote:
> sample ... the CDATA and the <itms:artist> to output
>
> thanks!!!!
>
>
<![CDATA[
> <TABLE BORDER=0 WIDTH="100%"><TR><TD><table border="0" width="100%"
> cellspacing="0" cellpadding="0">
> <tr valign="top" align="left">
> <td ALIGN=CENTER WIDTH=166 VALIGN=TOP><a
> href="http://www.midnitejamm.com"></a></td>
> <td width="10"><img alt="" width="10" height="1"
> src="/images/spacer.gif"></td>
> <td width="95%"><B><a href="http://www.midnitejamm.com</a></B><br>
> <a href="http://www.midnitejamm.com">Cinemechanica, Maserati &amp; We
> Versus the Shark</a><br><br>
> <font size="3"
> FACE="Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Release Date:</B>
> November 23, 2005<br>
> </font><font size="3"
> FACE="Helvetica,Arial,Geneva,Swiss,SunSans-Regular"><B>Total Songs:</B>
> 6</font><br>
> </tr>
> </table></TD></TR>
> </TABLE>
> ]]>


Any chance of you bottom posting 'cause this is getting unreadable :)

Can you not just strip the cdata tags using "var $CDATA = 'strip';" and
then display the resulting html? Writing a parser for the above html
would be a serious pain in the arse. Better to just insert the,
seriously hideous, html in with the rest of your rss data.

> "Andrew @ Rockface" <andrew@rockface-records.co.uk> wrote in message
> news:dm1jdu$b72$3@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
>
>>SimpleT wrote:
>>
>>>thanks ... i thought it did ... have recent one ...
>>>
>>>"Two ways how to proceed CDATA information (get/strip CDATA content) "
>>>
>>>question is how to display/output it ...
>>
>>
>>Depends on the format of the cdata. How about an example?


--
Andrew @ Rockface
np: Day Of The Dead - The Ludovico Centre Deja-Vu
www.rockface-records.co.uk

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация