BizTalk Server - How can i parse the message?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server > June 2005 > How can i parse the message?





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 How can i parse the message?
Eladr

2005-06-23, 7:49 am

i have a message in BTS which contains this xml:
<RESPONSE type="status">
<OBJECT type="itimexecstatus">
<ATTR type="itimstatus">Success</ATTR>
<ATTR type="itimmessage"></ATTR>
<ATTR type="itimrequestid">332348688569213909</ATTR>
<ATTR type="bpmid">1493@747</ATTR>
</OBJECT>

<OBJECT type="itimexecstatus">
<ATTR type="itimstatus">Success</ATTR>
<ATTR type="itimmessage"></ATTR>
<ATTR type="itimrequestid">332348688569213909</ATTR>
<ATTR type="bpmid">1493@748</ATTR>
</OBJECT>
</RESPONSE>

im doing loop to get each OBJECT node.
inside the expression im writing xpath to get the object node

xmlDoc =
xpath(MsgFromWS,"/*[local-name()='RESPONSE']/*[local-name()='OBJECT'][" +
StrCounter + "]");

My questions:
1)How can i modify the xpath so i will get the value of ATTR element with
the attribute "bpmid"?

2)Why cant i use this xmlDoc object to get the details like this?
for example:
XmlDocRes.SelectNodes("//OBJECT").Item(0).Attributes["someVal"].Value
it always "stuck" after item(0). and gives me "illegal dot name"

thanks

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com