Posted: Mon Nov 03, 2008 10:08 pm Post subject: getFirstElementByPath vs evaluateXPath
Centurion
Joined: 03 Apr 2006 Posts: 101 Location: USA
Not to be considered as a trivia/quiz question, but just trying to understand this
For a given input XML, if I have to retrieve the value of an element in the XML which would be a more costlier operation (performance-wise)
getFirstElementByPath or evaluateXPath.
Comments and insight into this much appreciated. _________________ LIFE is a series of complex calculations, somewhere multiplied by ZERO.
Also, it doesn't matter at all whether the input message is XML or not.
Both getFirstElementByPath and evaluateXPath operate on the logical message tree that is constructed by the parser, and it is only the parser that cares what the input message bitstream contains.
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