From: Mike B. <mb...@Ga...> - 2003-03-24 14:00:08
|
Christian Sell wrote: > this raises a question I have had on my mind for a while: > > what about specifying elements via XPath? There are XPath > implementations around that can operate on a standard DOM, so if that > was accessible (I didnt find it in Htmlunit, but must be around > somewhere), one could point to any elements via XPath. There are even > free graphical tools available to create XPath expressions from a web page. If I recall correctly, all you need for xpath is a starting node and the xpath statement itself. You can get the xml node from any HtmlElement by calling the getElement() method. This can then be used as the starting element. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |