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