Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Get value from message in expression shape

0 views
Skip to first unread message

Xerox

unread,
Nov 21, 2004, 7:47:10 PM11/21/04
to
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

unread,
Nov 22, 2004, 3:19:03 AM11/22/04
to
Hi,

Try this:

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

Regards,

Alan

Kenzo

unread,
Nov 22, 2004, 4:02:58 PM11/22/04
to
It works! Thanks a lot mate.

"Alan Smith" <Alan...@discussions.microsoft.com> wrote in message
news:0207E9DB-1F64-4141...@microsoft.com...

0 new messages