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 » problems when using an XPath in a MbElement node

Post new topic  Reply to topic
 problems when using an XPath in a MbElement node « View previous topic :: View next topic » 
Author Message
scutaru
PostPosted: Mon May 04, 2009 1:01 am    Post subject: problems when using an XPath in a MbElement node Reply with quote

Novice

Joined: 26 Mar 2009
Posts: 16

Hi guys,
I have a pretty simple code as follows:

Code:
...
String[] values = [retrieving an array of strings];
...
for(String valueItem:values){
   MbElement arrayItem = responseItem.createElementAsLastChild(MbElement.TYPE_NAME, "Item", null);
   arrayItem.evaluateXPath("?@value[set-value('"+valueItem+"')]");
}
...


As a result of the sequence above, my document looks like this:

Code:
   <Item value='yada yada 1'/>
   <Item value='yada yada 2'/>
   ...


However, sometimes the "Item" and "value" strings get tied together as you can see below:

Code:
   <Itemvalue='yada yada 1'/>


This happens only for one element - never seen it for more than one. Needless to say, this causes my parsing to fail.
Does anybody know what could be the cause for this weird behavior ?

Thank you,
Ionut
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon May 04, 2009 9:42 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Some details would be useful
- Which domain are you using
- Which version of broker
- Result of your basic diagnosis steps ( you have already inserted Trace nodes and taken a user trace, of course )
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 » problems when using an XPath in a MbElement node
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.