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 questionPlease 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.
精彩评论