Using XPath to get Rootnode name in Expression shape

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Using XPath to get Rootnode name in Expression shape

Viewing 1 reply thread
  • Author
    Posts
    • #21775

      Hi,

      I have a requirement to fetch Root node name from XML document in expression shape in Orchestration. Can anyone any idea of how I can use Xpath to get it? I have used the following syntax but didn’t work.

      strName = xpath(“root(trantype)”);

      “trantype” is the element of that XML.

      Thanks in advance.

      Mit

       

    • #21777

      Try this:

      strName = xpath(message, “string(local-name(/child::*))”);

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