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
Thread Tools Display Modes
  #1 (permalink)  
Old September 13th, 2010, 09:18 AM
Registered User
Join Date: Sep 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default EDI BizTalk Scripting problem


I originally posted something on this problem on the XSLT thread because that was my original thought, but decided to have the question here instead. If it matters(which i don't think it does) this is an EDI214 transaction.

I have data in the format of:


Or more specifically a regular expression of:


Where what is in parenthesis occurs 0 to many times. This string is coming across in an xml element and I need to transform it into this format:

<Field1> AAAAAAAA </Field1>
<Field2> BBBBBBBBB </Field2>
<Field1> AAAAAAAA </Field1>
<Field2> BBBBBBBBB </Field2>
<Field1> AAAAAAAA </Field1>
<Field2> BBBBBBBBB </Field2>

I think I have to use XSLT, because this is going into a biztalk solution and I canít change the schemas. I think i can create the xml using xslt, but i don't know how to parse the strings with it.

My new thought is this:

Doesn't the scripting functoid just output a string? If so, can I not build this string using VB.NET or C# instead? In the above Field1 and Field2 are children tags of L11. In fact the Field1 and Field2 above are as such:


Can't I build this structure in a VB.NET script and drag the functoid output to the parent or the <L11> output field? I have tested the code I'm using in a sample VB.NET project and I am getting the proper output. When I do it, I get the error: "The element L11 has an invalid structure".

Any ideas for first whether I can do what I'm trying to do and if not, what I can do in XSLT to make it work. I can post the VB.NET code if it is needed.


Reply With Quote

Thread Tools
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
BizTalk Configframework Problem bboyles Biztalk 0 December 28th, 2005 11:39 AM
EDI nagaraju.gajula ASP.NET 1.0 and 1.1 Basics 0 December 15th, 2005 11:55 PM
Problem with scripting component zippo ASP.NET 1.0 and 1.1 Basics 0 February 9th, 2005 09:21 AM
Problem in biztalk.. rdigala Biztalk 0 November 27th, 2003 03:26 AM
Client & Server Side Scripting Problem lbob Classic ASP Professional 0 October 16th, 2003 10:45 AM

All times are GMT -4. The time now is 01:33 AM.

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