That's a good answer as well.  The last example I provided works very well for custom tables or where you plan to import amounts of data on a regular basis.  Also, the .ColumnNames property doesn't include the datatype or control type, whereas the XML definition does (for all class types; doc type, custom table, biz form, etc).  In my case I needed to check the datatype and in one particular instance a control type.