PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <? preg_match_all( "/<topic>". "\s*<id>\s*(.*?)\s*<\/id>". "\s*<titel>\s*(.*?)\s*<\/titel>". "\s*<forum>\s*(.*?)\s*<\/forum>". "\s*<forumafkorting>\s*(.*?)\s*<\/forumafkorting>". "\s*<startts>\s*(.*?)\s*<\/startts>". "\s*<lastts>\s*(.*?)\s*<\/lastts>". "\s*<topicstarter>\s*(.*?)\s*<\/topicstarter>". "\s*<starterid>\s*(.*?)\s*<\/starterid>". "\s*<replies>\s*(.*?)\s*<\/replies>". "\s*<last_replier>\s*(.*?)\s*<\/last_replier>". "\s*<replierid>\s*(.*?)\s*<\/replierid>". "\s*<messageid>\s*(.*?)\s*<\/messageid>". "\s*<\/topic>/is",$source, $matches, PREG_SET_ORDER); ?> |
veel plezier ermee.
zie ook http://gathering.tweakers.net/forum/hottopic_xml
Klaar voor een nieuwe uitdaging.