I need to read data from a table and generate a XML File. I saw a couple of examples and other topics, but no one with the same context:
I read, for example, three columns:
Code: Select all
ID | NAME | AGE
1 | PETER | 35
2 | PAUL | 40
Code: Select all
<node>
<file> /dir/filename</file>
<category name="CATEGORY 1: PERSON">
<attribute name="Name"> PETER </attribute>
<attribute name="age"> 35 </attribute>
<attribute> </attribute>
</category>
<category name "CATEGORY 2: ID">
<attribute name="value"> 1 </attribute>
</category>
<node>
Code: Select all
INPUT COLUMN XPATH MAPPED
PETER /node/category/@name["Name"]/text()
35 /node/category/@name["Age"]/text()
Finally: I need to group based on the attribute name not based on the "tag".
Thanks in advance.