I have a delimited file like this.
Name;ID;Type
ABC;1;Blue
PQR;2;Black
I am trying to make a flat file schema for the above data. But I am not able to find a way to make the XML tags match the headers.
the XML file it is creating is
<Root>
<Root_Child1>Root_Child</Root_Child1>
<Root_Child2>Root_Child</Root_Child2>
<Root_Child3>Root_Child</Root_Child3>
</Root>
What I want is something like this
<Root>
<Name>Root_Child</Name>
<ID>Root_Child</ID>
<Type>Root_Child</Type>
</Root>
I have 55 headers and it is a tedious job to manually change the XSD file . Is there an easier way to achieve this?
I think that this is not possible with only the Flat File Schema. You need to implement a map and create those tags and assign the values.
For example, with this Flat File Schema:
And then you implement a Map with this Custom XSLT: