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 » ${Root.XML...

Post new topic  Reply to topic
 ${Root.XML... « View previous topic :: View next topic » 
Author Message
Blomman
PostPosted: Thu Jun 28, 2007 3:02 am    Post subject: ${Root.XML... Reply with quote

Master

Joined: 31 Oct 2006
Posts: 230

Hi!

I have a trace node and trying to get out some "data" from an xml message.

My XML:

<?xml version="1.0" encoding="ISO-8859-1"?>

<batfu:batfu xmlns:batfu="http://blablabla" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaversion="1.2" xsi:schemaLocation="http://blablabla http://blablavla_v1.xsd">

<batfu:something>

<batfu:something2>2102</batfu:something2>

<batfu:something3>2102-K5969-07</batfu:something3>


</batfu:something>

</batfu:batfu>

My pattern:

Message passed through: ${SUBSTRING(CAST(CURRENT_TIMESTAMP AS CHARACTER) FROM 12 FOR 19)}

something2:${Root.XML.(XML.Element)[1].(XML.Element)[1].(XML.Element)[1]}

something3:${Root.XML.(XML.Element)[1].(XML.Element)[1].(XML.Element)[1].(XML.Element)[1]}

Msgtype: ${FIELDNAME(Root.XML.(XML.Element)[1].(XML.Element)[1])}

*****************************************************



From something3 all i get is NULL and from something2 im getting the correct "data". Im not sure if i have understood this correctly.

/B
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Jun 28, 2007 3:07 am    Post subject: Re: ${Root.XML... Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Hi,

I suggest (without testing):
something3:${Root.XML.(XML.Element)[1].(XML.Element)[1].(XML.Element)[1].(XML.Element)[2]}

something3 is next sibling of something2. It is not a child.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
marcin.kasinski
PostPosted: Thu Jun 28, 2007 3:10 am    Post subject: Re: ${Root.XML... Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

PS. I don't knwon if you red it here but consider changing domain from XML to XMLNS or XMLNSC.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Blomman
PostPosted: Thu Jun 28, 2007 11:15 pm    Post subject: Re: ${Root.XML... Reply with quote

Master

Joined: 31 Oct 2006
Posts: 230

marcin.kasinski wrote:
PS. I don't knwon if you red it here but consider changing domain from XML to XMLNS or XMLNSC.


Thx man now i got it!
This about the domain i dosent understand.

/B
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri Jun 29, 2007 12:09 am    Post subject: Re: ${Root.XML... Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Blomman wrote:
marcin.kasinski wrote:
PS. I don't knwon if you red it here but consider changing domain from XML to XMLNS or XMLNSC.


Thx man now i got it!
This about the domain i dosent understand.

/B


Let's say XML domain is "deprecated".
It is not officially deprecated, but it is better to use other domains.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ${Root.XML...
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.