XPath in BizTalk

Source: Internet
Author: User
Tags xslt xquery biztalk
Biztalk is a very important product for Microsoft Message integration technology. The message here can be understood as XML. There will inevitably be many operations for message processing, such as transformation, filtering assignment, and content routing.

For XML, we generally use XSLT for different transformations. Filtering and operation assignment usually use XQuery. Of course, both XSLT and XQuery share an XPath. In the orchastration of BizTalk, you can use XPath to operate various messages. Biztalk provides a built-in function called XPath.
For example, you can filter specific record values. The syntax is XPath (message, xpathexpression)

Sometimes you may find thatProgramAnd cannot be executed in BizTalk. At this time, check the system daily value and you will see a lot of error messages.
At this time, you generally have the following two reasons:
1. Add the local-name judgment explicitly in the XPath expression.
For example, I wroteCode:

XPath (msg_in, " // * [Local-Name () = 'ponumber'] " );

In. net, it is generally written directly.

Msg_in.selectsinglenode ( " // Ponumber " );

Biztalk requires you to explicitly define nodename, or you can use an XPATH built-in function, local-name returns the local part of QNAME.
2. If you are too lazy, you can upgrade your node to distinguished field to check the code generated by Microsoft.

Which object is responsible for executing Microsoft's XPath syntax? It is also a DOM Model Using. NET Framework.

For the XPath function, BizTalk will replace this function when compiling a project. Of course, all BizTalk files will be converted into a CS file, and then compiled into DLL. You can view the CS file corresponding to the process by displaying all files.
Microsoft. xlangs. Core. Part. xpathload


Xpathload executes similar code:

Xmodocument. createnavigator (). Evaluate (XPath );

This method isMicrosoft. xlangs. Engine. dllThis Assembly

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.