Import XML without attributes



I have the below simple xml:



<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Analysis1>
<Row ImportType="Update">
<ACode>T1</ACode>
<ADesc>Test 1</ADesc>
</Row>
</Analysis1>


Row, has an optional attribute ImportType. When I import the xml into a DataTable, the DataTable will have an extra column ImportType. Can I exclude the attribute from the import.


Please note that this is a generic function, so I do not know the column names.


No comments:

Post a Comment