|
| 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
|
|