开发者

PHP XML manager/Xquery creator?

i'm looking for a PHP solution to easily traverse (readonly) XML files (rss feeds) from websites. Other providers have XML feeds with different markups and I want to have an easy PHP (possible self-built) manager to just enter an URI and then immediately be able to 'select' nodes/attributes/nodegroups to create somesort of definition for that provider.

Or am I just trying to create XSD files?

I'm not very sure on where to 开发者_JS百科go, other suggestions are more than welcome!


RSS is nasty and unless you are absolutely sure that you're only feeding the app well-formed RSS, using PHPs XML parsers will fail at some point.

I've used a simple class originally developed for parsing HTML called SimpleHTMLDom. The API is easy and handles all kinds of bad markup. As with most other markup parsers, the memory footprint is quite huge.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜