I want to add products to my system from different suppliers. They will send me their XML files and i will integrate them. The problem is XML files are schema different and tags are different but they serve the same information. I want to make a generic structure so that when a new XML comes out, i can easily add these products to my system, with few changes.
My project is Asp.net and coding language C#.
Is it possible to make this? What approach should i take ?
Here are sample XML files
<products>
<prouduct>
<code>1</code>
<name>Tshirt</name>
<price>10</price>
<stock>5</stock>
<category>Men > Shirts</category>
<subproducts>
<subproduct>
<groupid>1<groupid>
<code>12</code>
<property>Blue L<property>
<stock>2</stock>
<subproduct>
<subproduct>
<groupid>1<groupid>
<code>13</code>
<property>Red S<property>
<subproduct>
</subproducts>
</product>
</prouducts>
another one
<Urunler>
<Urun>
<UrunID>48826</UrunID>
<UrunAdi>PUMA 84075604 CAT LOGO ŞAPKA</UrunAdi>
<Kod>20YU18000010</Kod>
<Fiyat>28.00</Fiyat>
<Stoklar>
<Stok>
<Ozellik isim="Color-Size">STANDART STD</Ozellik>
<Miktar>1</Miktar>
</Stok>
</Stoklar>
</Urun>
</Urunler>