Error using XPath Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Error using XPath This topic has 2 replies, 1 voice, and was last updated 9 years, 2 months ago by community-content. Viewing 2 reply threads Author Posts May 26, 2009 at 1:07 PM #22495 community-content Hi, I am trying to use System.XML.Xpah() inside expression shape, but biztak is throwing error: ‘Xpath is not a function’ on the statement itsef. Thanks in advance. May 27, 2009 at 1:23 PM #22510 community-content I guess you dont need to put “System.XML”. I used something similar to this Declare variable countInvoices – Int type Then i have to following in the expression shape val = System.Convert.ToInt32(xpath(MessageName,”count(path of node)”)); Siva May 28, 2009 at 5:33 AM #22520 community-content Hi there! Try the following syntax to set a value: xpath(Msg_Message, “//*[1]/*[local-name() = ‘Header’]/*[local-name() = ‘Value’]”) = varValue; Or the following syntax to get a value: varValue = xpath(Msg_Message, “string(//*[1]/*[local-name() = ‘Header’]/*[local-name() = ‘Value’]/text())”); //Niklas Author Posts Viewing 2 reply threads The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies. Log in / Register