Error using XPath

Home Page Forums BizTalk 2004 – BizTalk 2010 Error using XPath

Viewing 2 reply threads
  • Author
    Posts
    • #22495

      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.

    • #22510

      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

    • #22520

      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

Viewing 2 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.