Hi,
new here. Just want to ask how do I extract data from xml below into an Excel Table. Problem I specifically can't get over with is how to make the attribute name into a column heading in Excel and how to extract from inside the groups.
Cheers.
<?xml version="1.0" encoding="windows-1252" ?>
Â
<file name="EMP_RECORD" version="3.0.0">Â
<schema>Â
<group name="EMP_RECORD_HOURS_DAY_DATE">Â
<field name="HOURS_DAY_DATE">Â
<desc>Effective Date</desc>Â
<just>R</just>Â
<len>12</len>Â
<type>DATE</type>Â
</field>Â
<field name="HOURS_DAY_CODE">Â
<desc>Hours/Days Register</desc>Â
<just>L</just>Â
<len>2</len>Â
<type>VARCHAR</type>Â
</field>Â
<field name="PAY_GROUP">Â
<desc>PAY_GROUP</desc>Â
<just>L</just>Â
<len>20</len>Â
<type>VARCHAR</type>Â
<foreign_key>Â
<target_file>PAY_GROUPS</target_file>Â
<key_parts>PAY_GROUP</key_parts>Â
</foreign_key>Â
</field>Â
<field name="WORK_PATTERN_CODE">Â
<desc>WORK_PATTERN_CODE</desc>Â
<just>L</just>Â
<len>20</len>Â
<type>VARCHAR</type>Â
</field>Â
<field name="WORK_PATTERN_WEEK">Â
<desc>WORK_PATTERN_WEEK</desc>Â
<just>R</just>Â
<len>14</len>Â
<type>INTEGER</type>Â
</field>Â
</group>Â
<field name="SURNAME">Â
<desc>Surname</desc>Â
<just>L</just>Â
<len>20</len>Â
<type>VARCHAR</type>Â
</field>Â
<field name="TITLE">Â
<desc>Title</desc>Â
<just>L</just>Â
<len>4</len>Â
<type></type>Â
</field>Â
<field name="FIRST_NAME">Â
<desc>First Name</desc>Â
<just>L</just>Â
<len>20</len>Â
<type></type>Â
</field>Â
<field name="PREF_NAME">Â
<desc>Preferred Name</desc>Â
<just>L</just>Â
<len>15</len>Â
<type>VARCHAR</type>Â
</field>Â
</schema>Â
<data>Â
<row key="Emp1">Â
<group name="EMP_RECORD_HOURS_DAY_DATE">Â
<field name="HOURS_DAY_DATE">09 JAN 2001</field>Â
<field name="HOURS_DAY_CODE">14</field>Â
</group>Â
<field name="SURNAME">DOE</field>Â
<field name="TITLE">MS</field>Â
<field name="FIRST_NAME">JANE</field>Â
<field name="PREF_NAME">JANE</field>Â
</row>Â
<row key="Emp2">Â
<group name="EMP_RECORD_HOURS_DAY_DATE">Â
<field name="HOURS_DAY_DATE">19 JAN 2001</field>Â
<field name="HOURS_DAY_CODE">14</field>Â
</group>Â
<field name="SURNAME">SMITH</field>Â
<field name="TITLE">MR</field>Â
<field name="FIRST_NAME">JOHN</field>Â
<field name="PREF_NAME">JOHN</field>Â
</row>Â
</data>Â
</file>