Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
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 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.



Similar Threads
Thread Thread Starter Forum Replies Last Post
BizTalk Configframework Problem bboyles Biztalk 0 December 28th, 2005 12:39 PM
EDI nagaraju.gajula ASP.NET 1.0 and 1.1 Basics 0 December 16th, 2005 12:55 AM
Problem with scripting component zippo ASP.NET 1.0 and 1.1 Basics 0 February 9th, 2005 10:21 AM
Problem in biztalk.. rdigala Biztalk 0 November 27th, 2003 04:26 AM
Client & Server Side Scripting Problem lbob Classic ASP Professional 0 October 16th, 2003 10:45 AM

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