[fpc-devel] XML / SAX - Removing redundancies
Michael Van Canneyt
michael at freepascal.org
Wed Mar 12 18:36:30 CET 2014
On Wed, 12 Mar 2014, Daniel Gaspary wrote:
> On Wed, Mar 12, 2014 at 2:23 PM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>> Curious: How can XPath become dom independent ?
>> I thought the result of XPath was a series of DOM nodes ?
> Yes, it is. But I'm thinking about using the XPath expressions in other classes.
> Maybe a TXmlTextReader descendent with support to some kind of
> "realtime XPath Filter"
> Like executing an Event Procedure every time a specific XPath
> Expression is matched.
I seriously doubt this is doable, since XPath works directly on the DOM tree ?
What can be achieved at the most seems to be the parsing of the expression and the resulting parse tree.
Which, I agree, would be useful to have available as a separate set of classes.
More information about the fpc-devel