04-26-04 09:36 PM
Edison,
Can you attach an instance of your document in the exact format you expect?
--
Dave
This posting is provided "AS IS" with no warranties, and confers no rights.
"Edison" <anonymous@discussions.microsoft.com> wrote in message
news:4093C09A-6CC6-4478-90EF-C0A0531C151E@microsoft.com...
> All
> I expect following flat file from my XML file. How will I achieve it by
BTS 2004? say using Mapper? I am new to BTS 2004
>
> [Document] -- This is the root tag that should come
> [NAME CAR] -- Name of mine
> [COMMENT Comment Test ] --- Comment
> [ID 00002] - Unique ID
> [COU CUS ] - Country I belong to
> [DOC Sample.doc] - DOcument name
> [End Of File]
>
> My questions are:
>
> 1) Using "[" or "]" in schmea is invalid. But in some posts I saw that I[/vbco
l]
can make square brackets as a part of data itself, which means that I need
to have a scripting functoid that would give me abobe result.[vbcol=seagreen]
>
> 2) In the above flat file the COU, DOC tags occur multiple times, when
they occur multiples times in my source schema my flat should look like
this, assuming you have 2 COU and DOC tags in my source schema, then my flat
file should look like
>
> [COU CUS,AUS]
> [DOC sample.doc, sample1.txt]
>
> I know that if I ahve a XML, I can convert it to a Flat file using a
pipeline. But I want my pipeline to look in above format. How to do I
achieve the same?
>
> Is it advisable to use a scripting functoid and generate a XML file
containing a sting of above format, and then give that XML file to pipeline
and convert it as a flat file using flat file assembler. If I do this way,
then in my flat file I am getting the root say starting node of XML file is
also coming. How will I get rid of the same.
>
> Thanks in advance
[ Post a follow-up to this message ]
|