Expand|Select|Wrap|Line Numbers
- <Item>
- <company>Stuff</company>
- <UPC>876543210123</UPC>
- <prod_cd>M-PRODUCT </prod_cd>
- <descrip>This thing has some describable charicteristics </descrip>
- <brand xml:space="preserve"> </brand>
- <color>CLR </color>
- <size>8 </size>
- <price>24.0000</price>
- <MSRP>72.0000</MSRP>
- <stockLevel>Y</stockLevel>
- <image_name>http://DOMAIN/FOLDER/FILE.jpg</image_name>
- <image_name_lg>http://DOMAIN/FOLDER/FILE-large.jpg</image_name_lg>
- <lastupdate>2011-07-07T19:35:28.257-07:00</lastupdate>
- </Item>
Am I stuck looping through the database table comparing every record or is there a process that already exisits for achieve this in a quicker and easier(on the DB) mannor? Then again, would it be better to drop the table each time and create a new one from the file?
Plus I would need to trim all the extra white space that is included in the data. Is there a way to do that across an entire Datatable with out looping, or possibly while pulling the data from the file into the datatable?
Thanks!