Windows Server - XML Document debatch question
Asked By Jason
13-Jan-08 05:46 PM
Hi All
I have a document which is similar to below
there are 3 main elements
The goods elements has core data on goods which are common between a
tradeitem and non tradeitem.
It also contains an element which specifies if that good is a tradeitem or
not via the <istrade> element.
If the item is then it will have a corrosponding <tradeitem> element else
there will be a <nontradeitem> element.
What I need to to do is to separate all this data into two xml files.
Say trade.xml and nontrade.xml where each xml file will only contain data
relevant to them and in a new schema.
example
trade.xml
I have investigated looking into maps for this functionality but it appears
you cannot combine fields from two or more looping records into a single
destination record.
So with this being said, what would be the best way to achieve this? any
thoughts?
Tradeitem
(1)
Specifies
(1)
Functoid
(1)
Debatch
(1)
Mapper
(1)
Asas
(1)
Sdsd
(1)
Maps
(1)
dnova replied...
Hi Jason,
You can still use a map and can use the index functoid if there is an
order you can rely on, otherwise you can use inline XSLT or XSLT Call
Template from within the scripting functoid in conjunction with a
mostly normal map. If you're schema is that simple you can just use
the inline xslt and wire it to the root of your destination schemas
(one per destination schema). I often find myself falling back on
XSLT because I've done it for so long, but with enough work you can
usually find a mapping way to get what you want. If you do go down
the XSLT path XML Note Pad or the testing tools for the mapper should
be used to make your life easier.
s

Error trying to use Custom Functoid. Windows Server I am trying to create a simple custom functoid using vb.net 2005. I am able to get my functoid to show up in the toolbox and add it to a simple map. The functoid properties (icon, tooltip. . .) look like they should. However, when I test the map I get or higher ' Resource assembly reference MyBase.SetupResourceAssembly("CSA.BizTalk.Functoids.Resources", System.Reflection.Assembly.GetExecutingAssembly) ' functoid properties MyBase.SetName("DNSNAME_NAME") MyBase.SetTooltip("DNSNAME_TOOLTIP") MyBase.SetDescription("DNSNAME_DESCRIPTION") MyBase.SetBitmap("DNSNAME_BITMAP") ' functoid parameters, no input paramters MyBase.SetMinParams(0) MyBase.SetMaxParams(0) ' Function code MyBase.SetExternalFunctionName(MyBase GetType.Assembly.FullName, ' Category in toolbox where this functoid will appear MyBase.Category = Microsoft.BizTalk.BaseFunctoids.FunctoidCategory.String ' Output of this functoid can go to all nodes indicated MyBase.OutputConnectionType = Microsoft.BizTalk.BaseFunctoids.ConnectionType.AllExceptRecord End Sub
Logical Equal Functoid Question Windows Server Hello. In a BizTalk 2006 R2 Map I have a source element to set the destination element to "O". I know I can use the Logical Equal Functoid but I'd have to use it 10 times. Is there a more efficient way this? Thanks in advance. Rita BizTalk Discussions BizTalk (1) Database (1) RitaG (1) Splunteren (1) Functoid (1) XSLT (1) Hi, There are a couple of options here: -Use scripting functoid, use C# or XSLT to check for the value and have the script return "O or "I" -Use 'string find' functoid solution below: 1. concatenate functoid first parameter: ', ' second parameter: value from source message third parameter: ', ' 2. 'string find' functoid first parameter: ', 11, 18, 21, 41, ' (include leading and trailing ', ' char) second parameter: result from concatenate functoid. 3. 'equal' functoid first parameter: result from string find functoid second parameter: 0 4. 'greater
Custom functoid reading source XML structure Windows Server Hello, I need to create a custom functoid that is able to read not string value from source document as usualy, but specified part of XML tree. User specifies some node from input schema and functoid should read this node and all its subnodes and work with them as normal DOM string value found in this XML. Do you have any idea how to develop such functoid for BizTalk 2006 R2? Thanks very much, Petr Janda BizTalk Discussions ScriptType.XsltCallTemplate (1) BizTalk (1) Janda (1) Specifies (1) Reflector (1) Subnodes (1) Functoid (1) Emits (1) On Fri, 25 Jan 2008 07:02:02 -0800, Petr Janda <Petr A custom functoid takes a string as input, which is the text from the input node. As output
Custom Functoid cannot receive result of LOGICAL OR functoid Windows Server thank you for taking the time to read this. we're using a if / else custom functoid: public object IFELSEmethod(string strCondition, object strTrueResult, object strFalseResult) { / / This function returns the 2nd paramater strTrueResult; } else { return strFalseResult; } } the first parameter is a result from from a LOGICAL OR functoid. in mapper i cannot connect from the LOGICAL OR to the IFELSE functoid. here's the complete code, any help would be greatly appreciated: public class IFELSE : BaseFunctoid public IFELSE() : base() { / / ID for this functoid this.ID = 9001; / / resource assembly must be ProjectName.ResourceName if building with VS.Net SetupResourceAssembly CustomFunctoids.Resources", Assembly.GetExecutingAssembly()); / / Setup the Name, ToolTip, Help Description, and the Bitmap for this functoid SetDescription("IFELSE_description"); SetName("IFELSE_name"); SetTooltip("IFELSE_tooltip"); SetBitmap("IFELSE_bitmap"); this.SetMinParams(3); this.SetMaxParams(3); / / set
Value Mapping Functoid Windows Server Hi There – I am using Biztalk 2004 and the Accelerator for HIPAA 3.0. I am having a problem using the value mapping (flattening) functoid. The source schema has repeating records like this. DTP*356*D8*20080901 DTP*357*D8 jpg Thanks in advance for any help. BizTalk Discussions BizTalk (1) Xslt (1) Accelerator (1) Functoid (1) Linda (1) C7C361D6A86DE34C (1) Leonidganeline (1) Blog.biztalk (1) I believe you should use Value mapping functoid with proper condition instead of the flattening value mapping functoid . Linda You will NEVER get the data to appear using the out-of-the-box I will take a look at it. Linda thanks for you response. I changed the functoid to the non flattening functoid but got the same result. Thanks. Hi, The problem should be caused by there must be a looping functoid links one or more parent records in the source schema to a parent record in