ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » getFirstElementByPath vs evaluateXPath

Post new topic  Reply to topic
 getFirstElementByPath vs evaluateXPath « View previous topic :: View next topic » 
Author Message
paranoid221
PostPosted: Mon Nov 03, 2008 10:08 pm    Post subject: getFirstElementByPath vs evaluateXPath Reply with quote

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.
Back to top
View user's profile Send private message
ovasquez
PostPosted: Wed Aug 19, 2009 9:17 am    Post subject: Reply with quote

Centurion

Joined: 09 Dec 2005
Posts: 141
Location: Lima, Peru

acorder IBM.
GETByPath is better than XPATH
58% msg/sec(GETByPath) = msg/sec(xpath)

read for example ip15_WMB V6.1 For zOS Performance report.
_________________
Oscar Vásquez Flores
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Aug 19, 2009 9:50 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » getFirstElementByPath vs evaluateXPath
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.