开发者

Please recommend php xml parser (some 3rd party library) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accept开发者_运维知识库ing answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

Please recommend php xml parser library, I can't use default php xml parser lib because it take too much time for parsing my script and apache dies. (no ability to config Timeout option, so I want flush() from time to time to keep it alive)


You seem to need the expat parser. Luckily PHP has this already built in.

In case you're not familiar with it, the expat parser is an event based parser. It does not create a tree from your document (like the DOM and the SimpleXML libraries do), it just parses from start to end and triggers events when it finds certain XML components, like tags and data.

To see an example implementation you can look at this tutorial on w3schools.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜