I have a simple XML schema such as:
<DDGroup>
<Data>
<Field_1>x</Field_1>
<Field_2>y</Field_2>
<Field_3>z</Field_3>
</Data>
</DDGroup>
I have a comma delimited file whose first row contains column names.(The content of the file can change per file but the first row will always contain column names.)
Ex:
Cars, Planes, Motorcycles
Ford, Boeing, Harley
Honda, Airbus, Suzuki
I would like these column names to become the Element names dynamically.Is there a way to make it so that the Schema would look like this:
<DDGroup>
<Data>
<Cars>Ford</Cars>
<Planes>Boeing</Planes>
<Boats>Harley</Boats>
</Data>
</DDGroup>
Then if I was to apply the schema to a different file that had different column names those would become the element name?
Your help Is appreciated!
<DDGroup>
<Data>
<Field_1>x</Field_1>
<Field_2>y</Field_2>
<Field_3>z</Field_3>
</Data>
</DDGroup>
I have a comma delimited file whose first row contains column names.(The content of the file can change per file but the first row will always contain column names.)
Ex:
Cars, Planes, Motorcycles
Ford, Boeing, Harley
Honda, Airbus, Suzuki
I would like these column names to become the Element names dynamically.Is there a way to make it so that the Schema would look like this:
<DDGroup>
<Data>
<Cars>Ford</Cars>
<Planes>Boeing</Planes>
<Boats>Harley</Boats>
</Data>
</DDGroup>
Then if I was to apply the schema to a different file that had different column names those would become the element name?
Your help Is appreciated!