php - Is XMLReader a SAX parser, a DOM parser, or neither? -


I am testing various methods to read XML configuration files in PHP (possibly large, reads many times ) No writing is ever necessary I have two successful implementations, one is using another XMLReader using a SimpleXML (which I know is a DOM parser) .

I know that a DOM reader should read the whole tree and therefore uses more memory to reflect my test. I also know that the A SAX Parser is an "event-based" parser that uses less memory because it reads each node from the stream which reads without further testing.

XMLReader also reads from a stream with the cursor. Data about the node is presently, therefore, it seems that XMLReader () not is a DOM parser But my question is, is this a SAX parser or something else? It seems that the way XMLReader parses SAX, it behaves, but does not throw events themselves (in other words, can you build a sand paras with XMLReader?)

If this is something else, then is there a name in the classification? XMLReader extension XMLReader extension is XML drag parser reader document stream on

XMLReader

Works as a moving cursor and prevents it on every node on the way.

It later says that it is used.

There may be some possible interest. If XMLReader relates to the goal and intent of this project, then the answer to your question clearly comes out in the "No" category.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -