开发者

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

开发者 https://www.devze.com 2023-01-30 13:41 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accept开发者_运维知识库ing answers.
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

精彩评论

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