You are here: Re: getting data from a feed file « PHP Programming Language « IT news, forums, messages
Re: getting data from a feed file

Posted by Vladimir Ghetau on 06/14/07 17:54

On Jun 14, 3:59 pm, j...@mynetserv.com wrote:
> Ok, I have a feed that I need to get the data from. The file is an
> html file that contains items. I need to step through the file,
> getting the first item, doing whatever, then the second item, and so
> on. Any thoughts on the best way to to this?
>
> <Feed>
> <Item>
> <ID>Data I need</ID>
> <Title>Data I need</Title>
> </Item>
> <Item>
> <ID>Data I need</ID>
> <Title>Data I need</Title>
> </Item>
> </Feed>



Yes, try these functions (explained at php.net with examples):

xml_parser_create()
xml_parser_set_option()
xml_parse_into_struct()
xml_parser_free()



These four , come one after another, and they will help you parse the
file easier.

If you prefer regular expressions, let me know :-)



BeachAndCocktails

 

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

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