Problem with xpath function
I have to retreive an xml element using an xpath query it is working fine if i give the query in this manner
Message_3=xpath(Message_2,"string(/*[local-name()='DataItems' and namespace-uri()='']/*[local-name()='DataItem' and namespace-uri()='']/*[local-name()='ItemName' and namespace-uri()=''][12])");
but giving a null value if given the query in this way
Variable_1=System.String.Format("/*[local-name()='DataItems' and namespace-uri()='http://BizTalk_Server_Project14.Schema3']/*[local-name()='DataItem' and namespace-uri()='']/*[local-name()='ItemName' and namespace-uri()=''][{0}]",8);
Message_3=xpath(Message_2,"string(Variable_1)");
Please suggest some solution for this.
|