BizTalk Server Orchestration - Get value from message in expression shape

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > November 2004 > Get value from message in expression shape





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Get value from message in expression shape
Xerox

2004-11-21, 5:48 pm

I am having no luck trying. I simply want to get the value of an attribute
from a message using an expression shape. My schema is really simple:

<ns0:Purge xmlns:ns0="http://Development.Purge.PurgeSchema" DaysPrior =
"101"/>

I want to get the DaysPrior value out of it. Here is one of my many attempts
at getting the value without any luck. Can you please help!

System.Diagnostics.Debug.WriteLine ( xpath ( PurgeMessage, "/@DaysPrior" ) );

Thanks!
Alan Smith

2004-11-22, 2:46 am

Hi,

Try this:

System.Diagnostics.Debug.WriteLine ( xpath ( PurgeMessage, "string
(/*/@DaysPrior)" ) );

Regards,

Alan


"Xerox" wrote:

> I am having no luck trying. I simply want to get the value of an attribute
> from a message using an expression shape. My schema is really simple:
>
> <ns0:Purge xmlns:ns0="http://Development.Purge.PurgeSchema" DaysPrior =
> "101"/>
>
> I want to get the DaysPrior value out of it. Here is one of my many attempts
> at getting the value without any luck. Can you please help!
>
> System.Diagnostics.Debug.WriteLine ( xpath ( PurgeMessage, "/@DaysPrior" ) );
>
> Thanks!

Kenzo

2004-11-22, 5:48 pm

It works! Thanks a lot mate.

"Alan Smith" <AlanSmith@discussions.microsoft.com> wrote in message
news:0207E9DB-1F64-4141-B341-746C548E7419@microsoft.com...[vbcol=seagreen]
> Hi,
>
> Try this:
>
> System.Diagnostics.Debug.WriteLine ( xpath ( PurgeMessage, "string
> (/*/@DaysPrior)" ) );
>
> Regards,
>
> Alan
>
>
> "Xerox" wrote:
>
attribute[vbcol=seagreen]
attempts[vbcol=seagreen]
"/@DaysPrior" ) );[vbcol=seagreen]


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com