Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
| Search | Today's Posts | Mark Forums Read
Biztalk General discussion about Biztalk server.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Biztalk section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 22nd, 2008, 10:15 AM
Registered User
 
Join Date: May 2008
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in Using xpath() function in Biztalk

I have an xml document which looks as this
<DataItems>
<DataItem>
<ItemName>Web Service Url</ItemName>
<ItemValue>www.Google.com</ItemValue>
</DataItem>
<DataItem>
<ItemName>Password/ItemName>
<ItemValue>Swetha</ItemValue>
</DataItem>
<DataItems>
I want to get the text of ItemValue if i give the text of ItemName
using the xpath() function in Biztalk server.

For example if i give the text of <ItemName> as Web Service Url How to get the corresponding <ItemValue> that is www.Google.com
using xpath() function in Biztalk server.Please give any sugestions.

 
Old May 22nd, 2008, 11:03 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Code:
/*/DataItem[ItemName = 'Web Service Url']/ItemValue
If the actual document has namespaces then you'll have to use the longer-winded syntax,
Code:
local-name() = 'element name' and namespace-uri() = 'namespace uri''
to identify the elements.u

--

Joe (Microsoft MVP - XML)
 
Old September 9th, 2013, 02:57 AM
Registered User
Points: 27, Level: 1
Points: 27, Level: 1 Points: 27, Level: 1 Points: 27, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Location: Delhi
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in Using xpath() function in Biztalk

You want to get the text of ItemValue if u give the text of ItemName
using the xpath() function in Biztalk server than

1) Add a breadpoint in the orchestration.

2) Extract the BizTalk messaging and see whether the field is present in the incoming message. If so, than use the "Instance XPath" of the retrieved message using any tool.

http://www.athenainfotech.co.uk/managed-b2b-services




Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with xpath function Phanikumar Biztalk 1 May 22nd, 2008 02:32 AM
TRANSLATE FUNCTION INSIDE XPATH pallone XSLT 8 February 8th, 2008 05:30 PM
Formating xpath function result number ronisc XSLT 4 December 20th, 2006 09:04 AM
Sum function and XPath problems tslag XSLT 2 June 26th, 2006 10:23 AM
Xpath: sum function gracehanh XSLT 13 September 27th, 2005 09:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.