Which XML parser API does dom4j SaxReader use? SAX or DOM?

The whole point of dom4j is that it is an alternative tree model to DOM. It wouldn't make any sense to parse a whole DOM only to convert it to dom4j. Anyway this page makes it clear that a SAX parser is used to generate a dom4j.

The whole point of dom4j is that it is an alternative tree model to DOM. It wouldn't make any sense to parse a whole DOM only to convert it to dom4j. Anyway this page makes it clear that a SAX parser is used to generate a dom4j.Re: your XPath question.

Generally speaking you do need a tree model to run XPath against. This means something like DOM, dom4j, jdom, or xom. These are all various different "xml document object models".

SAX is a different thing altogether - it is just a stream of events with no object model. So the correct mental model is: use a SAX parser to generate an object model, and then run XPath against that object model. Of course there are other things you can do, but that is one natural way those three technologies can fit together.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions