From: Stefan S. <se...@sy...> - 2005-08-10 07:18:13
|
tikcireviva wrote: > Hi Everyone, > > After going through a couple examples, I found that the XPath feature is > pretty handy. And I wonder why there is XPath example for DOM instead of > SAX? To be able to look up nodes via xpath expressions you need a dom tree to navigate to match the pattern from the expression. These patterns can become arbitrarily complex and they typically involve nodes far appart in the document (or even across multiple documents !), so matching with a stream-based protocol would be very hard (you would have to reread the stream over and over again). Regards, Stefan |