Re: How to split XML file based on data in BizTalk
- From: linesh.gajera@xxxxxxxxx
- Date: 14 Mar 2007 13:04:36 -0700
Thanks ak
Unfortunately, I cannot modify the source schema. This schema was
generated using BizTalk DB2 adapter and if I modify the schema, DB2
adapter failed to load data.
However, I don't think it is even possible with envelop techinque.
I build a custom pipeline component that split the XML document into
multiple xml. When i debug the component, there are no exception and
it splits the document fine but somehow those xml documents failed
with error Routing Failure Report for "<Name is not available>" andi
do not see message part for this message. I do have send port which
subscribe to those messages as well.
I do not see any easy solution to it.
Any ideas?
Thanks
Linesh
On Mar 13, 5:22 pm, kitche...@xxxxxxxxxxx wrote:
On Mar 13, 3:04 pm, linesh.gaj...@xxxxxxxxx wrote:
Hi All,
I am trying tosplitthe xmlfilebasedon the value. Somehow, i do
not have the success yet. There are lots of example of splitting flat
filebut not the XMLfile. Here is a sample XMLfile
<DB2QueryResult xmlns="DB2Query">
<F57EDID Idenfitier="H" QADATA="Hdata1" QAUKID="10.0"/>
<F57EDID Idenfitier="N" QADATA="Ndata1" QAUKID="10.0"/>
<F57EDID Idenfitier="D" QADATA="Ddata1" QAUKID="10.0"/>
<F57EDID Idenfitier="H" QADATA="Hdata2" QAUKID="10.0"/>
<F57EDID Idenfitier="N" QADATA="Ndata2" QAUKID="10.0"/>
<F57EDID Idenfitier="D" QADATA="Ddata2" QAUKID="10.0"/>
</DB2QueryResult>
I want tosplitthefilewhenever Identifier="H" occurs. Identifier
='H' is a to determine a new transaction. My output should be 2 XML
files as in above XML there are 2 transactions.
I can't find the the way tosplitthefile.
Thanks in advance
Linesh
Linesh, this sounds like a multi-part process. The overview would be:
first, look into parsing the original document interchange (see Jan
Tielen's bloghttp://weblogs.asp.net/jan/archive/2004/03/07/85259.aspx).
Second, I'd use an orchestration to add messages back togetherbased
on the identifier "H".
However, To make your life easier (if possible) I'd look into
modifying the sourcedataouput so that the xml can be formed
something like...
<DB2QueryResult xmlns="DB2Query">
<transaction Idenfitier="H" QADATA="Hdata1" QAUKID="10.0">
<F57EDID Idenfitier="N" QADATA="Ndata1" QAUKID="10.0"/>
<F57EDID Idenfitier="D" QADATA="Ddata1" QAUKID="10.0"/>
</transaction>
<transaction Idenfitier="H" QADATA="Hdata2" QAUKID="10.0">
<F57EDID Idenfitier="N" QADATA="Ndata2" QAUKID="10.0"/>
<F57EDID Idenfitier="D" QADATA="Ddata2" QAUKID="10.0"/>
</transaction>
</DB2QueryResult>
Hope some of this helps.
-ak- Hide quoted text -
- Show quoted text -
.
- References:
- How to split XML file based on data in BizTalk
- From: linesh . gajera
- Re: How to split XML file based on data in BizTalk
- From: kitchenam
- How to split XML file based on data in BizTalk
- Prev by Date: Re: UK SDC BizTalk 2006 Documenter
- Next by Date: Re: Microsoft BizTalk 2006 Rosettanet accelerator
- Previous by thread: Re: How to split XML file based on data in BizTalk
- Next by thread: BizTalk 2006 Flat File Parse Produces Garbage Characters at the Beginning of Xml Message Document
- Index(es):
Relevant Pages
|