The evaluateXPath method for TagNode returns a java.lang.Object.
What class can I cast this object to, so that I can do something with it?
Can someone please provide an example of using the evaluateXPath method and the object it returns.
Many thanks.
See for example:
http://htmlcleaner.svn.sourceforge.net/viewvc/htmlcleaner/test/org/htmlcleaner/XPatherTest.java?revision=78&view=markup
Sorry i missed to documented what it returns - it is array of Objects, but those objects can be only TagNode or String instances.
Regards, Vladimir.
Log in to post a comment.
The evaluateXPath method for TagNode returns a java.lang.Object.
What class can I cast this object to, so that I can do something with it?
Can someone please provide an example of using the evaluateXPath method and the object it returns.
Many thanks.
See for example:
http://htmlcleaner.svn.sourceforge.net/viewvc/htmlcleaner/test/org/htmlcleaner/XPatherTest.java?revision=78&view=markup
Sorry i missed to documented what it returns - it is array of Objects, but those objects can be only TagNode or String instances.
Regards, Vladimir.