faqts : Computers : Integration : BizTalkServer2004

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

Easy way to get XPath to element

Apr 6th, 2005 22:21
Balaji Ramachandran, http://www.netologi.se/default.aspx?Contents=BizTalkFAQ


If you need an XPath for a specific element in a document and you're 
not fluent in XPath (which I'm not) an easy solution can be to open the 
schema in BizTalk Schema Editor in Visual Studio. When you select a 
node in the schema you may look in the Instance XPath property (in the 
Property Window) to find an XPath statement for accessing that element. 
This is an example of what it might look like:
/*[local-name()='OrderRequest' and namespace-uri()
='http://schemas.netologi.se']/*[local-name()='orderId' and namespace-
uri()='http://schemas.netologi.se']