Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.

Reply With Quote
  #2 (permalink)  
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)
Reply With Quote
  #3 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.