|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
problems when using an XPath in a MbElement node |
« View previous topic :: View next topic » |
Author |
Message
|
scutaru |
Posted: Mon May 04, 2009 1:01 am Post subject: problems when using an XPath in a MbElement node |
|
|
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 |
|
 |
kimbert |
Posted: Mon May 04, 2009 9:42 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|