pavan kumar

pavan kumar

  • NA
  • 1
  • 1.2k

C#

Jan 24 2014 8:36 AM
Hi, i want to modify two fields in a xml file which should select xml file from solution explorer. Also the two fields should display same "number" which is selected from the .CSV file.  Finally the xml should be placed to the particular file.
 
Here are the screen shots.
 
 Number of feeds 
 

Output location
 
 
Button
 
 
 
And my xml file
 
 
<?xml version="1.0"?>
-<ORDERDETAILS xmlns="http:Schema" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<ITEMS xmlns="">
-<ITEM>
-<ATTRIBUTES>
<ID>--------</ITEMID>
<PCODE/>
<PA>0</PA>
<PT>0</PT>
<Q>1</Q>
<SU>---</SU>
<UP>0</UP>
</ATTRIBUTES>
</ITEM>
</ITEMS>
-<ORDER xmlns="">
-<ATTRIBUTES>
<CD>------</CD>
<CC>USD</CC>
<GA>0</GA>
<MD>171655324091</MD> Change------
<O>====</O>
<P>====</P>
<S>---</S>
<ST>0</ST>
<SA>0</SA>
<S>0</S>
<S>---------------</S>
<V>-----</V>
<VE>----------</VE>
<CID>147254616</CID> Change----
<O>----</O>
<P>----</P>
<V>----</V>
<P>-----</P>
</ATTRIBUTES>
-<PROPERTIES>
<C>-----</C>
<P>---</P>
<R>-----</R>
<SNUMBER>171655324091</SNUMBER> Change----
<SE/>
<SY>170</SY>
<U>------</U>
</PROPERTIES>
</ORDER>
</ORDERDETAILS>
 
 Only two fields must change not all.
 
Finally if i want 20 feeds it should select 20 values from .csv file and should generate 20 feeds(that many xml files)
 
So please give me the code in c# format.