Posted: Mon Aug 24, 2009 3:28 am Post subject: Methods getFirstElementByPath and getFirstElementByPath
Novice
Joined: 01 Dec 2005 Posts: 19 Location: London - UK
Hello
I noticed in the infocenter for WMB 6.1.0.4 that the methods Methods getFirstElementByPath and getFirstElementByPath in class MbElement are deprecated. The advice is that Path selection should be done using the XPath 1.0 methods.
Posted: Mon Aug 24, 2009 6:23 pm Post subject: Re: Methods getFirstElementByPath and getFirstElementByPath
Grand Master
Joined: 25 Jun 2008 Posts: 1415
OtisFly wrote:
Hello
I noticed in the infocenter for WMB 6.1.0.4 that the methods Methods getFirstElementByPath and getFirstElementByPath in class MbElement are deprecated.
What's the difference between getFirstElementByPath() and getFirstElementByPath()? According to the online documentation, neither one of these appears to be deprecated for the MbElement class.
However, getAllElementsByPath() does appear to be deprecated.
OtisFly wrote:
The advice is that Path selection should be done using the XPath 1.0 methods.
Does anyone know why this is?
evaluateXPath() has all of the functionality of getAllElementsByPath(), and more; it also conforms to a well-known public standard.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum