Changes

Jump to: navigation, search

DOM/XPath Generator

679 bytes added, 22:35, 26 October 2006
adding request for content-identified nodes
It would probably be a good idea to include a addNamespace(namespaceURI, prefix) method to the IDL, to point into the resolver's namespace map. -- Alex Vincent
 
I'd like the ability for a caller to tell the generator that it should identify the starting node by the content it contains when calling generateXPath. We could do that by adding a searchFlag called something like IDENTIFY_START_BY_CONTENT which triggers the behavior.
 
When I say "identify the starting node by the content it contains", I mean use the contains() method or the like to filter nodes with the same tag name. For example, for an XPath expression starting at a DIV node whose content is "foo", the beginning of the XPath expression should be DIV[contains(.,"foo")] or some other XPath construct which identifies the node by the content it contains. -- Myk Melez
== XPath: Content Boundaries ==
Canmove, confirm
2,056
edits

Navigation menu