Re: [libxml++] Using SAX with XPath
- From: Stefan Seefeld <seefeld sympatico ca>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [libxml++] Using SAX with XPath
- Date: Wed, 10 Aug 2005 09:16:42 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]