My requirement is to export a row from Excel to XML. For example, if spreadsheet looks like this:
MessageID OriginalField OriginalCOBO RevisedCOBOL ChangeIndicator
I23456I SDQ SOURCE SOURCE-DATA-QUEUE 1
Then, I need to create a xml based on [Change Indicator]=1
.
Column values need to be element tag, not the column header. For example, desired output would be:
<I23456I>
<SDQ>
<COBOLName>SOURCE-DATA-QUEUE</COBOLName>
</SDQ>
</I23456I>
MessageID
and OriginalField
values will be keep changing and it is not the same for all.
Appreciate any help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…