Author |
Message
|
Blomman |
Posted: Thu Jun 28, 2007 3:02 am Post subject: ${Root.XML... |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Thu Jun 28, 2007 3:07 am Post subject: Re: ${Root.XML... |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Thu Jun 28, 2007 3:10 am Post subject: Re: ${Root.XML... |
|
|
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 |
|
 |
Blomman |
Posted: Thu Jun 28, 2007 11:15 pm Post subject: Re: ${Root.XML... |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Fri Jun 29, 2007 12:09 am Post subject: Re: ${Root.XML... |
|
|
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 |
|
 |
|